Пример #1
0
        public ActionResult DisplayInventory(FormInventoryLocationID getID)
        {
            var db = _repository.DisplayInventoryFromLocation(getID.LocationID).ToList();
            var inventoryModelList = new List <InventoryViewModel>();

            foreach (var item in db)
            {
                inventoryModelList.Add(new InventoryViewModel()
                {
                    LocationId = item.LocationId,
                    RecordId   = item.RecordId,
                    Stock      = item.Stock
                });
            }
            return(View(inventoryModelList));
        }
Пример #2
0
 public ActionResult GetInventoryLocationID(FormInventoryLocationID getID)
 {
     return(View(getID));
 }