Esempio n. 1
0
 public bool AddRawMaterialInventory(RawMaterialInventory rawMaterialInventory)
 {
     try
     {
         var context = new NeevDatabaseContainer();
         context.AddRawMaterialInventoryItem(rawMaterialInventory.Id, rawMaterialInventory.Name, rawMaterialInventory.Quantity, rawMaterialInventory.UnitPrice, rawMaterialInventory.Threshold);
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }
Esempio n. 2
0
 public bool AddRawMaterialInventory(RawMaterialInventory ri)
 {
     return(this.apiService.AddRawMaterialInventory(ri));
 }