Example #1
0
        public ActionResult Insert([FromBody] PersonViewModel person)
        {
            _appService.Insert(person);

            if (_notificationContainer.HasErrors)
            {
                return(BadRequest(_notificationContainer.Notifications));
            }

            return(Ok());
        }
 public IActionResult Add(PersonDtoPost input)
 {
     _personAppService.Insert(input);
     return(RedirectToAction("Index"));
 }