public IActionResult SaveQuickPickActivities(ActivitiesViewModel model) { PositionSetReq positionSetReq = new PositionSetReq(); string UserName = HttpContext.Request.Cookies["UserName"] ?? ckUserName; IRequestCookieCollection objCookies = HttpContext.Request.Cookies; SalesProviders salesProviders = new SalesProviders(_configuration); RoutingDaysGetRes routingDaysRes = salesProviders.GetQRFRoutingDays(new RoutingDaysGetReq { QRFID = model.QRFID }, token).Result; PositionGetReq positionGetReq = new PositionGetReq { QRFID = model.QRFID }; positionGetReq.ProductType.Add(new ProductType { ProdType = "Attractions" }); positionGetReq.ProductType.Add(new ProductType { ProdType = "Sightseeing - CityTour" }); PositionGetRes positionGetRes = positionProviders.GetPosition(positionGetReq, token).Result; positionMapping.ActivitiesGet(positionGetRes, null, ref model, token); positionSetReq = positionMapping.QuickPickActivitiesSet(model, routingDaysRes.RoutingDays, ckUserEmailId, positionGetRes); positionSetReq.QRFID = model.QRFID; positionSetReq.VoyagerUserID = ckLoginUser_Id; PositionSetRes positionSetRes = positionProviders.SetPosition(positionSetReq, token).Result; model.SaveType = "full"; return(RedirectToAction("Activities", new { model.QRFID, model.SaveType, IsClone = model.MenuViewModel.IsClone })); }
public async Task <RoutingDaysGetRes> GetQRFRoutingDays(RoutingDaysGetReq routingGetReq, string ticket) { RoutingDaysGetRes routingDaysGetRes = new RoutingDaysGetRes(); routingDaysGetRes = await serviceProxy.PostData(_configuration.GetValue <string>("ServiceRoute:GetQRFRoutingDays"), routingGetReq, typeof(RoutingDaysGetRes), ticket); return(routingDaysGetRes); }