public ActionResult Edit(int id) { Context.Location dbitem = RepoLocation.FindByPK(id); Location model = new Location(dbitem); ViewBag.name = model.Nama; return(View("Form", model)); }