Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        public ActionResult ChangeStatus(int quotationId, byte statusId)
        {
            string isSaved = QuotationHelper.ChangeStatus(quotationId, statusId);

            return(Json(isSaved));
        }