public ActionResult ListPublications(TableRequestModel request, PublicationsViewModel model) { var publications = db.Publications.Where(p => p.PublicationEntityId == model.PublicationEntityID); return TableResult.From(publications).Build<PublicationTable>(request); }
public ActionResult Index(int id) { var vm = new PublicationsViewModel(); vm.PublicationEntityID = id; // var publications = db.Publications.Include(p => p.PublicationEntity); return View(vm); }