Exemple #1
0
 //GetAllUsers
 public static List <Users1> GetAllUsers()
 {
     return(UsersConvertor.ConvertToListDto(UsersDL.GetAllUsers()));
 }
Exemple #2
0
 //LogIn2
 public static Users1 Login2(string email, string password)
 {
     return(UsersConvertor.ConvertToDto(
                UsersDL.GetAllUsers().FirstOrDefault(u => u.Email.Equals(email) && u.Password.Equals(password))));
 }
Exemple #3
0
 //GeByUserName
 public static Users1 GeByUserName(string userName)
 {
     return(UsersConvertor.ConvertToDto(UsersDL.GetAllUsers().FirstOrDefault(u => u.UserName.Equals(userName))));
 }
Exemple #4
0
 //LogIn1
 public static Users1 Login1(string userName, string password)
 {
     return(UsersConvertor.ConvertToDto(
                UsersDL.GetAllUsers().FirstOrDefault(u => u.UserName.Equals(userName) && u.Password.Equals(password))));
 }