예제 #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"));
        }
예제 #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));
        }
예제 #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"));
 }
예제 #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"));
 }