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