public ActionResult DeleteConfirmed(long id)
        {
            TORGOVAJA_TOCHKA torgovaja_tochka = db.TORGOVAJA_TOCHKA.Find(id);

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

            return(View(torgovaja_tochka));
        }
        //
        // GET: /TorgovajaTochka/Delete/5

        public ActionResult Delete(long id)
        {
            TORGOVAJA_TOCHKA torgovaja_tochka = db.TORGOVAJA_TOCHKA.Find(id);

            return(View(torgovaja_tochka));
        }
        //
        // GET: /TorgovajaTochka/Details/5

        public ViewResult Details(long id)
        {
            TORGOVAJA_TOCHKA torgovaja_tochka = db.TORGOVAJA_TOCHKA.Find(id);

            return(View(torgovaja_tochka));
        }