public async Task <IActionResult> Get(int id) { var item = await _subscriptionProductSnapshotRepository.GetSingleAsync(id); if (item == null) { return(NotFound()); } var result = Mapper.Map <SubscriptionProductSnapshotViewModel>(item); return(Ok(result)); }