// GET: Routing/Create public IActionResult Create() { ViewBag.BusinessProcessSelection = new SelectList(_repository.GetAllBusinessProcesses(bp => true).Select(b => new SelectListItem { Value = b.Id.ToString(), Text = b.ToString() }), "Value", "Text"); return(View()); }
// GET: BusinessProcesses public IActionResult Index() { //Linq query always true to return everything return(View(Mapper.Map <IEnumerable <BusinessProcessViewModel> >(_repository.GetAllBusinessProcesses(b => true)))); }