Inventory details
This commit is contained in:
@@ -35,6 +35,13 @@ namespace InventoryTraker.Web.Controllers
|
||||
return BetterJson(viewModels);
|
||||
}
|
||||
|
||||
public JsonResult Find(int id)
|
||||
{
|
||||
var inventory = _context.Inventories.Find(id);
|
||||
var viewModel = Mapper.Map<InventoryViewModel>(inventory);
|
||||
return BetterJson(viewModel);
|
||||
}
|
||||
|
||||
private IQueryable<Inventory> AllInventory()
|
||||
{
|
||||
return _context
|
||||
|
||||
Reference in New Issue
Block a user