Example #1
0
        public static void GetAllInventory()
        {
            var collection = inventoryLogic.GetAllInventory();

            foreach (var item in inventoryLogic.GetAllInventory())
            {
                Console.WriteLine(item);
            }
        }
Example #2
0
        /*public InventoryController(IInventoryLogic inventoryLogic,
         *   IMapper mapper)
         * {
         *  _inventoryLogic = inventoryLogic;
         *  _mapper = mapper;
         * }*/
        public ActionResult Index()
        {
            var inventories = _inventoryLogic.GetAllInventory().ToList();


            var inventoryVM = _mapper.Map <IEnumerable <InventoryVM> >(inventories);



            return(View(inventoryVM));
        }
        public ActionResult Index()
        {
            var inventary = _inventoryLogic.GetAllInventory();

            return(View(inventary));
        }