public Task <ApiResponse <EventListItemDto> > Get(int id) { return(Respond .AsyncWith <EventListItemDto>(async(response, fail) => { response.Result = await _listProvider.GetEventAsync(id); })); }
public async Task <EventListItemDto> Get(int id) { return(await _listProvider.GetEventAsync(id)); }