public ActionResult GetProducts() { List <ProductDto> products = _productService.GetProducts(UserId); var result = new ProductsDto() { Products = products, Names = _consumptionService.GetConsumptionNames(UserId) .Where(x => !products.Any(y => y.Name == x)) .ToList() }; return(Ok(result)); }