public void UpdateSupplierInventory(SupplierInventoryDto supplierInventoryDto) { var supplierInventory = this.supplierInventoryDataService.GetSupplierInventory(supplierInventoryDto.ID); supplierInventory.Id = supplierInventoryDto.ID; supplierInventory.SupplierStandardInventoryId = supplierInventoryDto.SupplierStandardInventoryId; supplierInventory.Qty = supplierInventoryDto.Qty; supplierInventory.UnitPrice = supplierInventoryDto.UnitPrice; supplierInventory.AvailableQty = supplierInventoryDto.AvailableQty; supplierInventory.ProcessingQty = supplierInventoryDto.ProcessingQty; this.supplierInventoryDataService.UpdateSupplierInventory(supplierInventory); }
public void AddSupplierInventory(SupplierInventoryDto value) { var supplierInventory = new SupplierInventory { Id = value.ID, SupplierStandardInventoryId = value.SupplierStandardInventoryId, Qty = value.Qty, UnitPrice = value.UnitPrice, AvailableQty = value.AvailableQty, ProcessingQty = value.ProcessingQty, InventoryDate = DateTime.Now }; this.supplierInventoryDataService.AddSupplierInventory(supplierInventory); }
public SupplierInventoryDto GetSupplierInventory(int id) { var supplierInventory = this.supplierInventoryDataService.GetSupplierInventory(id); var supplierInventoryDto = new SupplierInventoryDto { ID = supplierInventory.Id, SupplierStandardInventoryId = supplierInventory.SupplierStandardInventoryId, Qty = supplierInventory.Qty, UnitPrice = supplierInventory.UnitPrice, AvailableQty = supplierInventory.AvailableQty, ProcessingQty = supplierInventory.ProcessingQty, InventoryDate = supplierInventory.InventoryDate }; return(supplierInventoryDto); }
public void UpdateSupplierInventory(int id, [FromBody] SupplierInventoryDto value) { this.supplierInventoryService.UpdateSupplierInventory(value); }
public void AddSupplierInventory([FromBody] SupplierInventoryDto value) { this.supplierInventoryService.AddSupplierInventory(value); }