public async Task <ActionResult> Create(AlumnoCreateDto Alumno)
        {
            var result = await _AlumnoService.Create(Alumno);

            return(CreatedAtAction(
                       "GetById",
                       new { id = result.AlumnoId },
                       result));
        }
Beispiel #2
0
        public async Task <ActionResult> CreateCategory([FromBody] AlumnoForCreation alumnoForCreation)
        {
            _serviceAlumnoBL.CalculaPromedio(alumnoForCreation);
            var estado = _serviceAlumnoBL.ResultadoFinal(alumnoForCreation.alumno, alumnoForCreation.resultadoFinal);

            alumnoForCreation.estado = estado;
            var result = await _serviceAlumno.Create(alumnoForCreation);

            return(Ok(result));
        }