public async Task <IActionResult> CancelOrder([FromBody] OrderIdDTO orderIdDTO) { if (!(User.IsInRole("Admin"))) { return(RedirectToAction("Index", "Home")); } await orderService.CancelOrder(orderIdDTO.OrderId); return(Json(new { newUrl = "/admin/orders" })); }
public Task <bool> EndOrder(OrderIdDTO data) { throw new NotImplementedException(); }