public ActionResult NoteDetail(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } Note note = nr.Find(x => x.Id == id); return(View(note)); }
public ActionResult Index(NoteFilter noteFilter, UserFilter userFilter, FetchOptions options) { var notes = noteRepository.Find(noteFilter, options); return(View(notes)); }