예제 #1
0
 public List <UserModel> GetAllUsers()
 {
     return(_userLogic.GetAll()?.Select(x => new UserModel
     {
         Login = x.Login,
         Password = x.Password,
         Role = x.Role.ToString(),
         Id = x.Id
     }).ToList());
 }