public ActionResult Delete(int id)
        {
            Poluchenie b = db.Poluchenies.Find(id);

            if (b == null)
            {
                return(HttpNotFound());
            }
            return(View(b));
        }
        public ActionResult DeleteConfirmed(int id)
        {
            Poluchenie b = db.Poluchenies.Find(id);

            if (b == null)
            {
                return(HttpNotFound());
            }
            db.Poluchenies.Remove(b);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(HttpNotFound());
            }
            Poluchenie Poluchenie = db.Poluchenies.Find(id);

            if (Poluchenie != null)
            {
                return(View(Poluchenie));
            }
            return(HttpNotFound());
        }
 public ActionResult Edit(Poluchenie poluchenie)
 {
     db.Entry(poluchenie).State = EntityState.Modified;
     db.SaveChanges();
     return(RedirectToAction("Index"));
 }
 public ActionResult Create(Poluchenie poluchenie)
 {
     db.Poluchenies.Add(poluchenie);
     db.SaveChanges();
     return(RedirectToAction("Index"));
 }