public ActionResult DeleteConfirmed(long id) { tblPuucContribuyente tblPuucContribuyente = db.tblPuucContribuyentes.Find(id); db.tblPuucContribuyentes.Remove(tblPuucContribuyente); db.SaveChanges(); return(RedirectToAction("Index")); }
public async Task <ActionResult> DeleteConfirmed(long id) { tblPuucContribuyente tblPuucContribuyente = await db.tblPuucContribuyentes.FindAsync(id); db.tblPuucContribuyentes.Remove(tblPuucContribuyente); await db.SaveChangesAsync(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "id,idContadorPublico,cuenta,estatus,granContribuyenteOrParaestatal,nombreComercial,tipoPersona,nombre,apellidoPaterno,apellidoMaterno,rfc,curp,idRepresentanteLegal,idSubSector,fechaRegistro,fechaModificacion,isInscritoREPDA,tieneFiel,actividadPreponderante,idSubRama,esCPR,identificador,preguntaSecreta,esRepresentante,grupoEmpresarial,countEnTramite,countSinTitulo,privilegioEnvio,nombreCompleto,aplicaFortamun,isCFE,alias,idSubTipoPersona,beneficiarioFiscal,observaciones,idClase,idWallet,isMunicipal,validadoSAT,idTipoSociedad")] tblPuucContribuyente tblPuucContribuyente) { if (ModelState.IsValid) { db.Entry(tblPuucContribuyente).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.idContadorPublico = new SelectList(db.tblPuucContadorPublicoes, "id", "nombre", tblPuucContribuyente.idContadorPublico); ViewBag.idRepresentanteLegal = new SelectList(db.tblPuucRepresentanteLegals, "id", "nombre", tblPuucContribuyente.idRepresentanteLegal); ViewBag.idSubRama = new SelectList(db.tblSubRamas, "id", "nombre", tblPuucContribuyente.idSubRama); return(View(tblPuucContribuyente)); }
// GET: Contribuyentes/Details/5 public async Task <ActionResult> Details(long?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } tblPuucContribuyente tblPuucContribuyente = await db.tblPuucContribuyentes.FindAsync(id); if (tblPuucContribuyente == null) { return(HttpNotFound()); } return(View(tblPuucContribuyente)); }
// GET: Condonaciones/Contribuyentes/Delete/5 public ActionResult Delete(long?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } tblPuucContribuyente tblPuucContribuyente = db.tblPuucContribuyentes.Find(id); if (tblPuucContribuyente == null) { return(HttpNotFound()); } return(View(tblPuucContribuyente)); }
// GET: Contribuyentes/Edit/5 public async Task <ActionResult> Edit(long?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } tblPuucContribuyente tblPuucContribuyente = await db.tblPuucContribuyentes.FindAsync(id); if (tblPuucContribuyente == null) { return(HttpNotFound()); } ViewBag.idContadorPublico = new SelectList(db.tblPuucContadorPublicoes, "id", "nombre", tblPuucContribuyente.idContadorPublico); ViewBag.idRepresentanteLegal = new SelectList(db.tblPuucRepresentanteLegals, "id", "nombre", tblPuucContribuyente.idRepresentanteLegal); ViewBag.idSubRama = new SelectList(db.tblSubRamas, "id", "nombre", tblPuucContribuyente.idSubRama); return(View(tblPuucContribuyente)); }