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