Esempio n. 1
0
        public IActionResult Meals()
        {
            string QRFID = Request.Query["QRFId"].ToString();
            IRequestCookieCollection objCookies = HttpContext.Request.Cookies;
            var sessionData = string.IsNullOrEmpty(HttpContext.Request.Cookies["VoyagerUser_Id"]) ? HttpContext.Session.GetComplexData <List <ProductAttributeDetails> >(SessionName) : null;

            MealsViewModel     model = new MealsViewModel();
            List <ProductType> lst   = new List <ProductType>();

            lst.Add(new ProductType {
                ProdType = "Meal"
            });
            PositionGetReq objPositionGetReq = new PositionGetReq()
            {
                QRFID = QRFID, ProductType = lst, PositionId = null, Type = "meal"
            };

            model = positionMapping.GetMealDetails(_configuration, token, objPositionGetReq, objCookies, "", sessionData);

            return(View(model));
        }