firstCommit

This commit is contained in:
ani_konarcheva@abv.bg
2022-03-25 16:24:21 +02:00
parent 71b378b8ee
commit 982a6a66dd
193 changed files with 63187 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Data.Entities;
namespace Data.Services
{
public class AuthenticationService
{
public User LoggedUser { get; private set; }
public void AuthenticateUser(string username, string password)
{
RentACarDbContext context = new RentACarDbContext();
this.LoggedUser = context.Users.FirstOrDefault(u => u.Username == username && u.Password == password);
}
}
}