Ejemplo n.º 1
0
        private async Task <List <MealViewModel> > GetMealViewModels(List <Guid> ids)
        {
            var filterOperation = await _mbo.FilterAsync(x => ids.Contains(x.Id));

            var drList = new List <MealViewModel>();

            foreach (var item in filterOperation.Result)
            {
                drList.Add(MealViewModel.Parse(item));
            }
            return(drList);
        }