public async Task <List <ProductSingleViewModel> > GetAvailableProductsApi(int customerID) { List <ProductSingleViewModel> cpList = new List <ProductSingleViewModel>(); IEnumerable <Product> result = await customerProductRepository.FindProductsAvailableByCustomerAsync(customerID); result = result.OrderBy(s => s.FullName.ToUpper()); foreach (Product item in result) { cpList.Add(new ProductSingleViewModel(item)); } return(cpList); }