public async Task <IActionResult> IndexAsync(int PromotionId, int PromotionPrice)
        {
            if (section != null)
            {
                var userinfo = await _userAPIClient.GetUserById(new Guid(ViewBag.UserId));

                if (userinfo.IsSuccessed)
                {
                    ViewBag.UserInfo = userinfo.ResultObject;
                }
            }

            ViewBag.PromotionId    = PromotionId;
            ViewBag.PromotionPrice = PromotionPrice;
            return(View());
        }
        public async Task <IActionResult> ProfileAsync()
        {
            if (ViewBag.UserId != null)
            {
                var result = await _userAPIClient.GetUserById(new Guid(ViewBag.UserId));

                var orderInfo = await _orderService.GetAllByUser(new string(ViewBag.UserId));

                if (result.IsSuccessed && orderInfo.IsSuccessed)
                {
                    ViewBag.UserInfo = result.ResultObject;
                    ViewBag.Orders   = orderInfo.ResultObject;
                }
                return(View());
            }
            return(RedirectToAction("index", "login"));
        }