public JsonResult ValidateEmail(string mail) { string message = string.Empty; var translist = _TransportMasterService.GetEmail(mail); if (translist.Count() != 0) { message = "success"; } else { message = "fail"; } return(Json(message, JsonRequestBehavior.AllowGet)); }