private bool CheckUser(Users users)
        {
            ValidateUser validate = new ValidateUser();

            if (validate.IsValidUser(users))
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
예제 #2
0
 public object ValidateUserLogin(UserCredentialModel userCredentialModel)
 {
     try
     {
         ValidateUser Validuser = new ValidateUser();
         var          result    = Validuser.IsValidUser(userCredentialModel);
         return(result);
     }
     catch (Exception e)
     {
         return(new Error()
         {
             IsError = true, Message = e.Message
         });
     }
 }