Example #1
0
        //[AuthorizeUser(RoleModule.Designation, Function.View)]
        public JsonResult CheckDesignationNameExist(string DesignationName)
        {
            bool check = false;

            DesignationViewModel dViewModel = new DesignationViewModel();

            try
            {
                check = _designationManager.CheckDesignationExist(DesignationName);

                Logger.Debug("Designation Controller CheckDesignationNameExist");
            }
            catch (Exception ex)
            {
                Logger.Error("Designation Controller - CheckDesignationNameExist" + ex.Message);
            }

            return(Json(check, JsonRequestBehavior.AllowGet));
        }