예제 #1
0
        public async Task <IActionResult> Get(int Id)
        {
            try
            {
                var results = await _repo.GetMatriculaById(Id);

                if (results == null)
                {
                    return(NotFound(MSG.NaoExisteMatricula));
                }
                return(Ok(results));
            }
            catch (Exception)
            {
                return(this.StatusCode(StatusCodes.Status501NotImplemented, MSG.BancoDadosFalhou));
            }
        }