Ejemplo n.º 1
0
        public async Task <IActionResult> OnPostAsync()
        {
            if (!ModelState.IsValid)
            {
                return(Page());
            }

            await _sistemaGrpcService.AlterarAsync(Sistema);

            return(RedirectToPage("Listar"));
        }
Ejemplo n.º 2
0
        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"));
        }