public static InventorySM Map(InventoryVM human) { InventorySM User = new InventorySM(); User.inventoryName = human.inventoryName; User.inventoryPrice = human.inventoryPrice; User.inventoryStock = human.inventoryStock; User.inventoryID = human.inventoryID; return(User); }
public static InventoryVM Map(InventorySM human) //Find a way to Map from one List to another List each object { InventoryVM User = new InventoryVM(); User.inventoryName = human.inventoryName; User.inventoryPrice = human.inventoryPrice; User.inventoryStock = human.inventoryStock; User.inventoryID = human.inventoryID; return(User); }
public InventorySM Map(InventoryDM human) { InventorySM user = new InventorySM(); user.inventoryName = human.inventoryName; user.inventoryPrice = human.inventoryPrice; user.inventoryStock = human.inventoryStock; user.inventoryID = human.inventoryID; return(user); }
public void DeleteInventory(InventorySM user) { StoreData userData = new StoreData(); userData.DeleteInventory(Map(user)); }
public void UpdateInventory(InventorySM user) { StoreData userData = new StoreData(); userData.UpdateInventory(Map(user)); }
public void AddInventory(InventorySM human) //Rename human to item { StoreData userData = new StoreData(); userData.CreateInventory(Map(human)); }