public ActionResult DeleteConfirmed(int id)
        {
            InventoryOwnership ınventoryownership = db.InventoryOwnerships.Find(id);

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

            return(View(ınventoryownership));
        }
        //
        // GET: /Default1/Delete/5

        public ActionResult Delete(int id)
        {
            InventoryOwnership ınventoryownership = db.InventoryOwnerships.Find(id);

            return(View(ınventoryownership));
        }
        //
        // GET: /Default1/Details/5

        public ViewResult Details(int id)
        {
            InventoryOwnership ınventoryownership = db.InventoryOwnerships.Find(id);

            return(View(ınventoryownership));
        }