public ActionResult DeleteConfirmed(int id)
        {
            ParkingMember parkingMember = db.ParkingMembers.Find(id);

            db.ParkingMembers.Remove(parkingMember);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "ParkingMemberID,ParkingMemberName,ParkingMemberCarMake,ParkingMemberCarModel,ParkingMemberCarYear,ParkingMemberPlate,ParkingMemberElite")] ParkingMember parkingMember)
 {
     if (ModelState.IsValid)
     {
         db.Entry(parkingMember).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(parkingMember));
 }
        public ActionResult Create([Bind(Include = "ParkingMemberID,ParkingMemberName,ParkingMemberCarMake,ParkingMemberCarModel,ParkingMemberCarYear,ParkingMemberPlate,ParkingMemberElite")] ParkingMember parkingMember)
        {
            if (ModelState.IsValid)
            {
                db.ParkingMembers.Add(parkingMember);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

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

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