public Task <ApiResponse <IEnumerable <EventListItemDto> > > Get() { return(Respond .AsyncWithMany <EventListItemDto>(async(response, fail) => { response.Result = await _listProvider.GetAllEventsAsync(); })); }
public async Task <IEnumerable <EventListItemDto> > Get() { return(await _listProvider.GetAllEventsAsync()); }