Beispiel #1
0
        public IActionResult Post(PeopleDomain novoPeople)
        {
            // Faz a chamada para o método .Cadastrar();
            _peopleRepository.Cadastrar(novoPeople);

            // Retorna um status code 201 - Created
            return(StatusCode(201));
        }
        public IActionResult Post(PeopleDomain people)
        {
            _peopleRepository.Cadastrar(people);

            return(StatusCode(201));
        }