public async Task <IActionResult> OnPostAsync() { if (!ModelState.IsValid) { return(Page()); } await _impedimentoGrpcService.IncluirAsync(Impedimento); return(RedirectToPage("Listar")); }
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")); }