public async Task <IActionResult> Edit(int id, [Bind("id,empresa,cnpj,mes_de_vigencia,sucesso,descricao,quantidade_de_nfs_baixadas,quantidade_de_nfs_processadas,tempo_execucao")] pbhxmlprestlog pbhxmlprestlog) { if (id != pbhxmlprestlog.id) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(pbhxmlprestlog); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!pbhxmlprestlogExists(pbhxmlprestlog.id)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } return(View(pbhxmlprestlog)); }
public async Task <IActionResult> Edit(int id, [Bind("id,caminho,cnpj,status,datain,idFilial,idEmpresa")] Pbhxmlprestlistfile pbhxmlprestlistfile) { if (id != pbhxmlprestlistfile.id) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(pbhxmlprestlistfile); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!PbhxmlprestlistfileExists(pbhxmlprestlistfile.id)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } return(View(pbhxmlprestlistfile)); }