// GET: Web_Rol/Delete/5 public async Task <ActionResult> Delete(long?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } Web_Rol web_Rol = await db.Web_Rol.FindAsync(id); if (web_Rol == null) { return(HttpNotFound()); } return(View(web_Rol)); }
// GET: Web_Rol/Edit/5 public async Task <ActionResult> Edit(long?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } Web_Rol web_Rol = await db.Web_Rol.FindAsync(id); if (web_Rol == null) { return(HttpNotFound()); } ViewBag.FK_rol_estado_rips = new SelectList(db.Estado_RIPS, "estado_rips_id", "nombre", web_Rol.FK_rol_estado_rips); return(View(web_Rol)); }