public async Task <IActionResult> GetAll() { var items = await _subscriptionProductSnapshotRepository.AllIncluding(x => x.ProductForSubscription).ToListAsync(); var results = Mapper.Map <IEnumerable <SubscriptionProductSnapshotViewModel> >(items); return(Ok(results)); }