public async Task <ActionResult> DeleteConfirmed(int id) { ConvenioInternacionalInstitucion convenioInternacionalInstitucion = await db.ConvenioInternacionalInstitucion.FindAsync(id); db.ConvenioInternacionalInstitucion.Remove(convenioInternacionalInstitucion); await db.SaveChangesAsync(); return(RedirectToAction("Index")); }
public async Task <ActionResult> Edit([Bind(Include = "Id,CODIGO_IES,NOMBRE_IES,ANO,SEMESTRE,CODIGO_CONVENIO,INSTITUCION_ASOCIADA,INSTITUCION_MULTILATERAL,ID_PAIS_INSTITUCION_ASOCIADA,FECHA_PERIODO")] ConvenioInternacionalInstitucion convenioInternacionalInstitucion) { if (ModelState.IsValid) { db.Entry(convenioInternacionalInstitucion).State = EntityState.Modified; await db.SaveChangesAsync(); return(RedirectToAction("Index")); } return(View(convenioInternacionalInstitucion)); }
// GET: ConvenioInternacionalInstitucion/Edit/5 public async Task <ActionResult> Edit(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } ConvenioInternacionalInstitucion convenioInternacionalInstitucion = await db.ConvenioInternacionalInstitucion.FindAsync(id); if (convenioInternacionalInstitucion == null) { return(HttpNotFound()); } return(View(convenioInternacionalInstitucion)); }