public ActionResult DeleteConfirmed(int id) { TR_USER_FLUX flux = db.TR_USER_FLUX.Find(id); db.TR_USER_FLUX.Remove(flux); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Delete(int id = 0) { TR_USER_FLUX flux = db.TR_USER_FLUX.Find(id); if (flux == null) { return(HttpNotFound()); } return(View(flux)); }
public ActionResult UpdateFlux(TR_USER_FLUX flux) { if (ModelState.IsValid) { db.Entry(flux).State = EntityState.Modified; db.SaveChanges(); return(Json("true")); } return(Json("false")); }
public ActionResult AddFlux(TR_USER_FLUX flux) { if (ModelState.IsValid) { db.TR_USER_FLUX.Add(flux); db.SaveChanges(); return(Json("true")); } return(Json("false")); }