//[AuthorizeUser(RoleModule.Company, Function.View)] public JsonResult CheckCompanyNameExist(string CompanyName) { bool check = false; CompanyViewModel vViewModel = new CompanyViewModel(); try { check = _CompManager.CheckCompanyNameExist(CompanyName); Logger.Debug("Company Controller CheckCompanyNameExist"); } catch (Exception ex) { Logger.Error("Company Controller - CheckCompanyNameExist" + ex.Message); } return(Json(check, JsonRequestBehavior.AllowGet)); }