Example #1
0
        public IActionResult Edit(int id)
        {
            var model = _person.GetPersonForUpdate(id);

            if (model == null)
            {
                return(NotFound()); //Return not found (404 friendly page) if model is null
            }

            return(View(model));
        }