コード例 #1
0
        public async Task <ActionResult> DeleteConfirmed(int id)
        {
            ConvenioInternacionalInstitucion convenioInternacionalInstitucion = await db.ConvenioInternacionalInstitucion.FindAsync(id);

            db.ConvenioInternacionalInstitucion.Remove(convenioInternacionalInstitucion);
            await db.SaveChangesAsync();

            return(RedirectToAction("Index"));
        }
コード例 #2
0
        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));
        }
コード例 #3
0
        // 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));
        }