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); } }
public bool AddRawMaterialInventory(RawMaterialInventory ri) { return(this.apiService.AddRawMaterialInventory(ri)); }