Ejemplo n.º 1
0
        public async Task <IActionResult> SaveOrder(BadgeLastOrderPreviewModel _Model)
        {
            var rtn = new CreateOrderBadgeLastOrderCommand(_context);
            int x   = await rtn.SaveAsync(_Model);


            return(RedirectToAction("OrderCompleted", "Home"));
        }
        public async Task SaveTest()
        {
            var rtn = new GetBadgeLastOrderQuery(_context);

            var result = await rtn.GetAsync("125");

            var cmd       = new CreateOrderBadgeLastOrderCommand(_context);
            var cmdResult = await cmd.SaveAsync(result);

            cmdResult.ShouldBe(2);
        }