示例#1
0
        public IActionResult Reprovar(int id)
        {
            Presenca PresencaBuscado = _PresencaRepository.BuscarPorId(id);

            if (PresencaBuscado == null)
            {
                try
                {
                    _PresencaRepository.Reprovar(id);
                    return(StatusCode(200));
                }
                catch (Exception e)
                {
                    return(BadRequest(e));
                }
            }
            return(StatusCode(404));
        }