public ActionResult Edit(location location)
 {
   if (ModelState.IsValid)
   {
     db.Entry(location).State = EntityState.Modified;
     db.SaveChanges();
     TempData["Success"] = "Location edited successfully";
     return RedirectToAction("Index");
   }
   return View(location);
 }
    public ActionResult Create(location location)
    {
      if (ModelState.IsValid)
      {
        db.locations.Add(location);
        db.SaveChanges();
        TempData["Success"] = "Location created successfully";
        return RedirectToAction("Index");
      }

      return View(location);
    }