Ejemplo n.º 1
0
        public async Task <ActionResult> DeleteOrder(int id)
        {
            var model = await _shopOrderRepository.DeleteOrder(id);

            TempData.AddResult(model);

            return(Redirect(IndexUrlWithQueryString));
        }
        public async Task <IActionResult> OrderDelete(int id)
        {
            TempData.AddResult(await _shopOrderRepository.DeleteOrder(id, this.UserId));

            return(RedirectToAction("Orders"));
        }