Esempio n. 1
0
        public ActionResult NoteDetail(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }

            Note note = nr.Find(x => x.Id == id);

            return(View(note));
        }
Esempio n. 2
0
        public ActionResult Index(NoteFilter noteFilter, UserFilter userFilter, FetchOptions options)
        {
            var notes = noteRepository.Find(noteFilter, options);

            return(View(notes));
        }