public async Task <ActionResult> DeleteConfirmed(string id)
        {
            equ_category equ_category = await db.equ_category.FindAsync(id);

            db.equ_category.Remove(equ_category);
            await db.SaveChangesAsync();

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

                return(RedirectToAction("Index"));
            }
            return(View(equ_category));
        }
        public async Task <ActionResult> Create([Bind(Include = "equ_cat_id,equ_cat_name")] equ_category equ_category)
        {
            if (ModelState.IsValid)
            {
                db.equ_category.Add(equ_category);
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }

            return(View(equ_category));
        }
        // GET: EquCategory/Delete/5
        public async Task <ActionResult> Delete(string id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            equ_category equ_category = await db.equ_category.FindAsync(id);

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