public ActionResult DeleteArea(int areaId) { #region Check Rights bool hasRights = false; hasRights = AdminHelper.CheckUserAction(ScreenEnum.AreasLibrary, ActionEnum.Delete); if (!hasRights) { return(Json("You are UnAuthorized to do this action")); } #endregion string isDeleted = LibraryCommonHelper.DeleteArea(areaId); return(Json(isDeleted)); }