private bool CheckUser(Users users) { ValidateUser validate = new ValidateUser(); if (validate.IsValidUser(users)) { return(true); } else { return(false); } }
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 }); } }