// check exist user public ActionResult CheckExistUserEmail(string userEmail) { if (Request.IsAjaxRequest()) { // Declare new DataAccess object UserDa dataAccess = new UserDa(); var exist = dataAccess.CheckExistUserEmail(userEmail); JsonResult result = Json(new { exist }, JsonRequestBehavior.AllowGet); return(result); } return(new EmptyResult()); }