public ActionResult DeleteConfirmed(string id)
        {
            PlaceOfOrigin placeOfOrigin = db.PlaceOfOrigin.Find(id);

            db.PlaceOfOrigin.Remove(placeOfOrigin);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "placeOfOrigin1,country")] PlaceOfOrigin placeOfOrigin)
 {
     if (ModelState.IsValid)
     {
         db.Entry(placeOfOrigin).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(placeOfOrigin));
 }
        public ActionResult Create([Bind(Include = "placeOfOrigin1,country")] PlaceOfOrigin placeOfOrigin)
        {
            if (ModelState.IsValid)
            {
                db.PlaceOfOrigin.Add(placeOfOrigin);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(placeOfOrigin));
        }
        // GET: PlaceOfOrigins/Delete/5
        public ActionResult Delete(string id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            PlaceOfOrigin placeOfOrigin = db.PlaceOfOrigin.Find(id);

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