Files
FA_WEB/SytelineSaAppEfDataModel/Services/LoginService.cs
Piotr Kus 9a7920f0e7 * Added EdiUser Entity and DTO
* Added LoginService to handle login and user creation
* Extended DbContext
* Extended Mapper
2025-01-31 10:08:53 +01:00

26 lines
597 B
C#

using AutoMapper;
using SytelineSaAppEfDataModel.Entities;
namespace SytelineSaAppEfDataModel.Services;
public class LoginService(SytelineSaAppDbContext context, IMapper mapper) : ILoginService
{
public async EdiUserd CreateUser(string userName, string password)
{
EdiUser user = new EdiUser()
{
Login = userName,
Password = password,
};
context.EdiUsers.Add(user);
await context.SaveChangesAsync();
return
}
public bool Login(string userName, string password)
{
}
}