Beispiel #1
0
        // GET: Receipe
        public async Task <IActionResult> List()
        {
            IList <Recipe> recipes = await _recipeService.GetAll();

            IList <RecipeListVM> model = new List <RecipeListVM>();

            model = _recipeMapper.ToListViewModel(recipes);
            return(View(model));
        }