예제 #1
0
        public async Task <IActionResult> GetCartDetailsAsync(int tid)
        {
            ShoppingCartModel model = new ShoppingCartModel(_db);
            List <ViewModels.ShoppingCartViewModel> details = await model.GetCartDetailsAsync(tid,
                                                                                              HttpContext.Session.GetString(SessionVars.User));

            return(Ok(details));
        }