Beispiel #1
0
        public IActionResult Get()
        {
            try
            {
                var user     = User.Identity.Name ?? "";
                var projetos = _context.GetAll();

                return(Ok(projetos));
            }
            catch (System.Exception)
            {
                return(StatusCode(500, "Não foi posssível listar os projetos"));
            }
        }