예제 #1
0
        public async Task <IActionResult> InsertEstudiante(EstudianteDTO estudianteDTO)
        {
            var estudiante = _mapper.Map <Estudiante>(estudianteDTO);
            await _estudianteService.InsertEstudiante(estudiante);

            estudianteDTO = _mapper.Map <EstudianteDTO>(estudiante);
            var response = new APIResponse <EstudianteDTO>(estudianteDTO);

            return(Ok(response));
        }