Beispiel #1
0
        public IActionResult PersonNotes(int id)
        {
            var model = new EditPersonNotes(_configuration)
            {
                PersonId = id
            };

            return(PartialView("Partial/PersonNotes", model));
        }
Beispiel #2
0
        public IActionResult EditPersonNotes([FromForm] EditPersonNotesForm form)
        {
            ModelState.Clear();
            var model = new EditPersonNotes(_configuration)
            {
                Form = form
            };

            model.SaveNotes();
            return(PersonNotes(model.Form.PersonId ?? 0));
        }