// GET: Greeting/Details/5 public ActionResult Details(int id) { var greeting = _greetingService.GetById(id); var viewModel = Mapper.Map <GreetingViewModel>(greeting); return(View(viewModel)); }