public async Task <IViewComponentResult> InvokeAsync(string offerIdString, bool allowEdit, bool isNegotiation = false) { OfferQuantityTableHtmlVM qtableHtml = new OfferQuantityTableHtmlVM(); qtableHtml = await _ApiClient.GetAsync <OfferQuantityTableHtmlVM>("Offer/GetQuantityTablesDisplay/" + Util.Decrypt(offerIdString) + "/" + allowEdit + "/" + isNegotiation, null); return(View(qtableHtml)); }
public async Task <IViewComponentResult> InvokeAsync(string offerIdString) { OfferQuantityTableHtmlVM qtableHtml = new OfferQuantityTableHtmlVM(); var _offerId = Util.Decrypt(offerIdString); qtableHtml = await _ApiClient.GetAsync <OfferQuantityTableHtmlVM>("Offer/GetQuantityTables/" + _offerId, null); return(View(qtableHtml)); }
public async Task <IViewComponentResult> InvokeAsync(string negotiationId) { OfferQuantityTableHtmlVM qtableHtml = new OfferQuantityTableHtmlVM(); var _negotiationId = Util.Decrypt(negotiationId); qtableHtml = await _ApiClient.GetAsync <OfferQuantityTableHtmlVM>("CommunicationRequest/GetNegotiationTableQuantityTables/" + _negotiationId, null); return(View(qtableHtml)); }
public async Task <IViewComponentResult> InvokeAsync(string offerIdString) { OfferQuantityTableHtmlVM qtableHtml = new OfferQuantityTableHtmlVM(); if (offerIdString == null) { } else { var _offerId = Util.Decrypt(offerIdString); qtableHtml = await _ApiClient.GetAsync <OfferQuantityTableHtmlVM>("Offer/GetQuantityTablesReadOnly/" + _offerId, null); } //qtableHtml = await _ApiClient.GetAsync<QuantitiesTemplateModel>("Offer/GetQuantityTables/" + 1, null); // ViewBag.qtableHtml = qtableHtml; return(View(qtableHtml)); }