Esempio n. 1
0
 public ActionResult <IEnumerable <WorkshopDTO> > GetWorkshops()
 {
     return(_service.GetWorkshops()
            .Select(workshop => (WorkshopDTO)workshop).ToList());
 }
 public IActionResult Index(string searchString = null)
 {
     ViewData["CurrentFilter"] = searchString;
     return(View(_service.GetWorkshops(searchString)));
 }