public static UserInfo GetByUserName(string userName) { return(UserInMemoryDataSource.FirstOrDefault(u => u.UserName == userName)); }
public static UserInfo Validate(string userName, string password) { return(UserInMemoryDataSource.FirstOrDefault(u => u.UserName == userName && u.Password == password)); }
public static IEnumerable <UserInfo> GetAll() { return(UserInMemoryDataSource.ToList()); }