コード例 #1
0
        public async Task <IActionResult> PostPerson([FromBody] Person person)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            _personBusiness.IsertPerson(person);

            return(CreatedAtAction("GetPerson", new { id = person.Id }, person));
        }