public ActionResult Create(Warehouses warehouses)
        {
            if (ModelState.IsValid)
            {
                db.Warehouses.Add(warehouses);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

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