示例#1
0
        public IActionResult SaveProposalPriceBreakup(string QRFID, string ProposalId, string txtPriceBreakup)
        {
            string UserName = HttpContext.Request.Cookies["UserName"] ?? ckUserName;

            #region Set Proposal by Proposal Id
            ProposalSetReq request  = new ProposalSetReq();
            ProposalSetRes response = new ProposalSetRes();
            request.Proposal.QRFID        = QRFID;
            request.Proposal.ProposalId   = ProposalId;
            request.Proposal.PriceBreakup = txtPriceBreakup == null ? "" : txtPriceBreakup;
            request.Proposal.EditUser     = UserName;
            request.Proposal.CreateUser   = UserName;
            response = coProviders.SetProposal(request, token).Result;
            #endregion

            if (response.ResponseStatus.Status.ToLower() == "success")
            {
                return(Json(new { responseText = "success" }));
            }
            else
            {
                return(Content("Error"));
            }
        }