//[AuthorizeUser(RoleModule.SubCategory, Function.View)] public JsonResult CheckSubcategoryExist(string subcategoryName) { bool check = false; SubcategoryViewModel dViewModel = new SubcategoryViewModel(); try { check = _subcatManager.CheckSubcategoryNameExist(subcategoryName); Logger.Debug("Subcategory Controller CheckSubcategoryExist"); } catch (Exception ex) { Logger.Error("Subcategory Controller - CheckSubcategoryExist" + ex.Message); } return(Json(check, JsonRequestBehavior.AllowGet)); }