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)); }
public ActionResult GetInventoryLocationID(FormInventoryLocationID getID) { return(View(getID)); }