public async Task <ActionResult <IEnumerable <ShareWithPrice> > > Get(int clientId) { var result = sharesService.GetSharesWithPrice(clientId); if (result != null) { return(await result.ToListAsync()); } else { return(NotFound()); } }