Example #1
0
        public async Task <IActionResult> NovoProjeto([FromBody] CriarProjeto request)
        {
            try
            {
                var response = await _mediator.Send(request, CancellationToken.None);

                return(await ResponseAsync(response));
            }
            catch (Exception ex)
            {
                return(BadRequest(ex.Message));
            }
        }
Example #2
0
        private void BtnProjetos_Click(object sender, RoutedEventArgs e)
        {
            CriarProjeto criarProjeto = new CriarProjeto();

            criarProjeto.Show();
        }