Exemplo n.º 1
0
        public ActionResult <bool> SavePerson([FromBody] Person input)
        {
            bool result = false;

            try
            {
                result = _people.AddPerson(input);
                return(Ok(result));
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
                return(BadRequest());
            }
        }