Пример #1
0
 public UserModel CheckUser(LoginModel model)
 {
     using (DataProvider dp = new DataProvider())
     {
         List <System_User> user = data.CheckUser(dp, model);
         if (user == null || user.Count == 0 || user.Count > 1)
         {
             return(null);
         }
         else
         {
             return(Mapper.Map <UserModel>(user[0]));
         }
     }
 }
Пример #2
0
 public int CheckUser(string UserName)
 {
     return(_loginData.CheckUser(UserName));
 }