// GET: Recipe/Details/5 public ActionResult Details(int id) { var recipeModel = _recipeManager.FindById(id); if (recipeModel == null) { return(HttpNotFound()); } var recipeViewModel = _mapper.Map <RecipeViewModel>(recipeModel); return(View(recipeViewModel)); }