public ActionResult Cancel(int quotationId, byte orderFrom = 1) { #region Check Rights bool hasRights; if (orderFrom == 1) //Check export rights { hasRights = AdminHelper.CheckUserAction(ScreenEnum.ExportQuotation, ActionEnum.Delete); } else { hasRights = AdminHelper.CheckUserAction(ScreenEnum.ImportQuotation, ActionEnum.Delete); } if (!hasRights) { return(Json("You are UnAuthorized to do this action")); } #endregion string isChanged = QuotationHelper.ChangeStatus(quotationId, 4); return(Json(isChanged));//, JsonRequestBehavior.AllowGet); }
public ActionResult ChangeStatus(int quotationId, byte statusId) { string isSaved = QuotationHelper.ChangeStatus(quotationId, statusId); return(Json(isSaved)); }