// 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)); }
// 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)); }