public async Task <ActionResult> DeleteConfirmed(int id)
        {
            EQPServiceList eQPServiceList = await db.EQPServiceLists.FindAsync(id);

            db.EQPServiceLists.Remove(eQPServiceList);
            await db.SaveChangesAsync();

            return(RedirectToAction("Index"));
        }
        public async Task <ActionResult> Edit([Bind(Include = "EQP_Id,EQPService_Id")] EQPServiceList eQPServiceList)
        {
            if (ModelState.IsValid)
            {
                db.Entry(eQPServiceList).State = EntityState.Modified;
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            return(View(eQPServiceList));
        }
        public async Task <ActionResult> Create([Bind(Include = "EQP_Id,EQPService_Id")] EQPServiceList eQPServiceList)
        {
            if (ModelState.IsValid)
            {
                db.EQPServiceLists.Add(eQPServiceList);
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }

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

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