public ActionResult AddEditCountry(int countryId, string countyNameEn, string countryNameAr) { #region Check Rights bool hasRights = false; if (countryId == 0) { hasRights = AdminHelper.CheckUserAction(ScreenEnum.CountriesLibrary, ActionEnum.Add); } else { hasRights = AdminHelper.CheckUserAction(ScreenEnum.CountriesLibrary, ActionEnum.Edit); } if (!hasRights) { return(Json("You are UnAuthorized to do this action")); } #endregion return(Json(LibraryCommonHelper.AddEditCountry(countryId, countyNameEn, countryNameAr))); }