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); }