public async Task <IActionResult> OnPostAsync() { if (!ModelState.IsValid) { return(Page()); } await _sistemaGrpcService.AlterarAsync(Sistema); return(RedirectToPage("Listar")); }
public async Task <IActionResult> OnPostAsync() { if (!ModelState.IsValid) { SelectSistemas = new SelectList(await _sistemaGrpcService.ListarAsync(), "Id", "Nome"); return(Page()); } await _projetoGrpcService.AlterarAsync(Projeto); return(RedirectToPage("Listar")); }