inserito hard coded parametro ItemID di test a 1 nell'URL..., da esporre x usare MVC Grid...
This commit is contained in:
@@ -123,12 +123,14 @@ namespace StockManMVC.Controllers
|
||||
}
|
||||
|
||||
// GET: Items
|
||||
public ActionResult Index()
|
||||
public ActionResult Index(int? id)
|
||||
{
|
||||
var item = db.Item.Include(i => i.ItemFamily);
|
||||
if (id == null) id = 0;
|
||||
ViewBag.ItemID = (int)id;
|
||||
return View(item.ToList());
|
||||
}
|
||||
|
||||
|
||||
|
||||
public ActionResult Grid()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user