Example #1
0
        public async Task <IEnumerable <RecipeVM> > GetAllRecipes()
        {
            var recipeDtos = await _recipeRepository.GetAllItems();

            return(recipeDtos.OrderByDescending(x => x.CreationDate).Select(x => x.ToVM()));
        }