// GET: NotesController/Details/5 public ActionResult Details(int id) { var note = _nContainer.GetNoteById(id); return(View(new NotesViewModel(note))); }