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