Exemple #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);
        }
Exemple #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);
        }
Exemple #3
0
        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);
        }
Exemple #4
0
        public void DeleteInventory(InventorySM user)
        {
            StoreData userData = new StoreData();

            userData.DeleteInventory(Map(user));
        }
Exemple #5
0
        public void UpdateInventory(InventorySM user)
        {
            StoreData userData = new StoreData();

            userData.UpdateInventory(Map(user));
        }
Exemple #6
0
        public void AddInventory(InventorySM human) //Rename human to item
        {
            StoreData userData = new StoreData();

            userData.CreateInventory(Map(human));
        }