public ActionResult DeleteConfirmed(int id)
        {
            PointSytem pointSytem = db.PointSytems.Find(id);

            db.PointSytems.Remove(pointSytem);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "PointID,SystemName")] PointSytem pointSytem)
 {
     if (ModelState.IsValid)
     {
         db.Entry(pointSytem).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(pointSytem));
 }
        public ActionResult Create([Bind(Include = "PointID,SystemName")] PointSytem pointSytem)
        {
            if (ModelState.IsValid)
            {
                db.PointSytems.Add(pointSytem);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(pointSytem));
        }
        // GET: PointSytems/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            PointSytem pointSytem = db.PointSytems.Find(id);

            if (pointSytem == null)
            {
                return(HttpNotFound());
            }
            return(View(pointSytem));
        }