public void AddInventory(StandardInventoryDto value) { var standardInventory = new StandardInventory(); standardInventory.ID = value.ID; standardInventory.ItemName = value.ItemName; standardInventory.InventoryItemCategoryId = value.InventoryItemCategoryId; standardInventory.InventoryItemSubCategoryId = value.InventoryItemSubCategoryId; standardInventory.QuantityUnitOfMesureId = value.QuantityUnitOfMesureId; standardInventory.Seasonality = value.Seasonality; standardInventory.MinimumInventory = value.MinimumInventory; standardInventory.FileServerDetailID = value.FileID; this.istandardInventoryDataService.AddInventory(standardInventory); }
public void AddInventory(StandardInventory standardInventory) { databaseContext.StandardInventory.Add(standardInventory); databaseContext.SaveChanges(); }