public async Task <ActionResult> DeleteConfirmed(int id)
        {
            PickupPoint_ pickupPoint_ = await db.PickupPoint_.FindAsync(id);

            db.PickupPoint_.Remove(pickupPoint_);
            await db.SaveChangesAsync();

            return(RedirectToAction("Index"));
        }
        public async Task <ActionResult> Edit([Bind(Include = "PkPoint_ID,PkPoint_Name,PkPoint_Address")] PickupPoint_ pickupPoint_)
        {
            if (ModelState.IsValid)
            {
                db.Entry(pickupPoint_).State = EntityState.Modified;
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            return(View(pickupPoint_));
        }
        public async Task <ActionResult> Create([Bind(Include = "PkPoint_ID,PkPoint_Name,PkPoint_Address")] PickupPoint_ pickupPoint_)
        {
            if (ModelState.IsValid)
            {
                db.PickupPoint_.Add(pickupPoint_);
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }

            return(View(pickupPoint_));
        }
        // GET: PickupPoint_/Edit/5
        public async Task <ActionResult> Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            PickupPoint_ pickupPoint_ = await db.PickupPoint_.FindAsync(id);

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