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])); } } }
public int CheckUser(string UserName) { return(_loginData.CheckUser(UserName)); }