//GeByUserName public static Users1 GeByUserName(string userName) { return(UsersConvertor.ConvertToDto(UsersDL.GetAllUsers().FirstOrDefault(u => u.UserName.Equals(userName)))); }
//LogIn2 public static Users1 Login2(string email, string password) { return(UsersConvertor.ConvertToDto( UsersDL.GetAllUsers().FirstOrDefault(u => u.Email.Equals(email) && u.Password.Equals(password)))); }
//GetUserById public static Users1 GetUserById(int userId) { return(UsersConvertor.ConvertToDto(UsersDL.GetUserById(userId))); }
//LogIn1 public static Users1 Login1(string userName, string password) { return(UsersConvertor.ConvertToDto( UsersDL.GetAllUsers().FirstOrDefault(u => u.UserName.Equals(userName) && u.Password.Equals(password)))); }