public ActionResult DeleteConfirmed(string id) { AGR_PERIZIE_TEMP_MVC aGR_PERIZIE_TEMP_MVC = db.AGR_PERIZIE_TEMP_MVC.Find(id); db.AGR_PERIZIE_TEMP_MVC.Remove(aGR_PERIZIE_TEMP_MVC); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "ID,BARCODE,IDSpedizione,IDPerito,IDTipoPerizia,DataPerizia,IDNazione,IDModello,Telaio,NumFoto,IDScheda,Note,NoteConc,Flags,DRichiesta,VRichiesta,DDefinizione,VDefinizione,DContab,VContab,Stato,FileNumber,IDUtente,DataModUtente,DataModPerito,DataSpedizione,DataArrivo,FlagControllo,IRichiesta,IDefinizione,IContab,IDMeteo,IDShip,IDPortL,IDPortD,DataImbarco,DataSbarco,IDLocalitaPerizia,TotaleItems,NumPDF,IsClosed")] AGR_PERIZIE_TEMP_MVC aGR_PERIZIE_TEMP_MVC) { if (ModelState.IsValid) { db.Entry(aGR_PERIZIE_TEMP_MVC).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.ID = new SelectList(db.AGR_PerizieExpGrim_Temp_MVC, "ID", "Bisarca", aGR_PERIZIE_TEMP_MVC.ID); return(View(aGR_PERIZIE_TEMP_MVC)); }
// GET: Test/Details/5 public ActionResult Details(string id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } AGR_PERIZIE_TEMP_MVC aGR_PERIZIE_TEMP_MVC = db.AGR_PERIZIE_TEMP_MVC.Find(id); if (aGR_PERIZIE_TEMP_MVC == null) { return(HttpNotFound()); } return(View(aGR_PERIZIE_TEMP_MVC)); }
// GET: Test/Edit/5 public ActionResult Edit(string id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } AGR_PERIZIE_TEMP_MVC aGR_PERIZIE_TEMP_MVC = db.AGR_PERIZIE_TEMP_MVC.Find(id); if (aGR_PERIZIE_TEMP_MVC == null) { return(HttpNotFound()); } ViewBag.ID = new SelectList(db.AGR_PerizieExpGrim_Temp_MVC, "ID", "Bisarca", aGR_PERIZIE_TEMP_MVC.ID); return(View(aGR_PERIZIE_TEMP_MVC)); }