public ActionResult <IEnumerable <EventReadDto> > GetEvents() { return(Ok(mapper.Map <IEnumerable <EventReadDto> >(repo.GetEvents()))); }
//GET api/Events/GetEvents public IHttpActionResult GetEvents() { return(Ok(_eventRepo.GetEvents())); }
public ActionResult EventList() { var allEvents = eventRepo.GetEvents(); return(View(allEvents)); }
public async Task <IActionResult> GetAllEvents([FromQuery] Options opts) { var eventItems = await _repository.GetEvents(opts); return(Ok(_mapper.Map <IEnumerable <EventReadDto> >(eventItems))); }