예제 #1
0
        public async Task <ActionResult <Profesor> > PostProfesor(Profesor item)
        {
            string respuesta = await _profesorAppService.RegistrarProfesor(item);

            if (respuesta != null)
            {
                return(BadRequest(respuesta));
            }

            return(CreatedAtAction(nameof(GetProfesor), new { id = item.Id }, item));
        }