Exemple #1
0
 //GeByUserName
 public static Users1 GeByUserName(string userName)
 {
     return(UsersConvertor.ConvertToDto(UsersDL.GetAllUsers().FirstOrDefault(u => u.UserName.Equals(userName))));
 }
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
 //GetUserById
 public static Users1 GetUserById(int userId)
 {
     return(UsersConvertor.ConvertToDto(UsersDL.GetUserById(userId)));
 }
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))));
 }