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

            return View(magasin);
        }