예제 #1
0
        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);
        }
예제 #2
0
        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);
        }