public string AccountCheck(AccountCheckView Account) { string result; if (_userservice.AccountCheck(Account.Account)) { result = "true"; } else { result = "false"; } return(result); }
public JsonResult CheckAccount(string account) { bool isValid = _userservice.AccountCheck(account); return(Json(isValid, JsonRequestBehavior.AllowGet)); }