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

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