public ActionResult Refund(int id, int inventoryDataID, int quantity) { var selesShipment = _salesShipmentsDataService.GetById(id); _salesShipmentsDataService.Refund(id); var inventoryID = _inventoryDataService.GetById(inventoryDataID); InventoryData inventoryData = new InventoryData() { ID = inventoryID.ID, InventoryQuantity = inventoryID.InventoryQuantity + quantity, }; _inventoryDataService.Refund(inventoryData); SuccessNotification("退货成功"); return(RedirectToAction("Index")); }