コード例 #1
0
 // 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());
 }
コード例 #2
0
 // GET: BusinessProcesses
 public IActionResult Index()
 {
     //Linq query always true to return everything
     return(View(Mapper.Map <IEnumerable <BusinessProcessViewModel> >(_repository.GetAllBusinessProcesses(b => true))));
 }