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

            await _impedimentoGrpcService.IncluirAsync(Impedimento);

            return(RedirectToPage("Listar"));
        }
示例#2
0
        public async Task <IActionResult> OnPostAsync()
        {
            if (!ModelState.IsValid)
            {
                SelectSistemas = new SelectList(await _sistemaGrpcService.ListarAsync(), "Id", "Nome");

                return(Page());
            }

            await _projetoGrpcService.IncluirAsync(Projeto);

            return(RedirectToPage("Listar"));
        }