public ActionResult DeleteConfirmed(long id)
        {
            SPISOK_TOVAROV spisok_tovarov = db.SPISOK_TOVAROV.Find(id);

            db.SPISOK_TOVAROV.Remove(spisok_tovarov);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit(SPISOK_TOVAROV spisok_tovarov)
 {
     if (ModelState.IsValid)
     {
         db.Entry(spisok_tovarov).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(spisok_tovarov));
 }
        public ActionResult Create(SPISOK_TOVAROV spisok_tovarov)
        {
            if (ModelState.IsValid)
            {
                db.SPISOK_TOVAROV.Add(spisok_tovarov);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(spisok_tovarov));
        }
        //
        // GET: /SpisokTovarov/Delete/5

        public ActionResult Delete(long id)
        {
            SPISOK_TOVAROV spisok_tovarov = db.SPISOK_TOVAROV.Find(id);

            return(View(spisok_tovarov));
        }
        //
        // GET: /SpisokTovarov/Details/5

        public ViewResult Details(long id)
        {
            SPISOK_TOVAROV spisok_tovarov = db.SPISOK_TOVAROV.Find(id);

            return(View(spisok_tovarov));
        }