public async Task <IEnumerable <SubscribeResource> > GetAllAsync() { var subscribes = await _subscribeService.ListAsync(); // map return data var resources = _mapper.Map <IEnumerable <Subscribe>, IEnumerable <SubscribeResource> >(subscribes); return(resources); }