Example #1
0
        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"));
        }
Example #2
0
        public ActionResult Delete(int id = 0)
        {
            TR_USER_FLUX flux = db.TR_USER_FLUX.Find(id);

            if (flux == null)
            {
                return(HttpNotFound());
            }
            return(View(flux));
        }
Example #3
0
 public ActionResult UpdateFlux(TR_USER_FLUX flux)
 {
     if (ModelState.IsValid)
     {
         db.Entry(flux).State = EntityState.Modified;
         db.SaveChanges();
         return(Json("true"));
     }
     return(Json("false"));
 }
Example #4
0
 public ActionResult AddFlux(TR_USER_FLUX flux)
 {
     if (ModelState.IsValid)
     {
         db.TR_USER_FLUX.Add(flux);
         db.SaveChanges();
         return(Json("true"));
     }
     return(Json("false"));
 }