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