示例#1
0
        public async Task <IActionResult> GetUrlProjeto()
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            var response = await _projetoService.ObterUrlProjeto();

            if (!string.IsNullOrEmpty(response))
            {
                return(Accepted(response));
            }
            else
            {
                return(BadRequest(response));
            }
        }