// POST: Countries/Edit public ActionResult Edit(Country pais) { var cp = new CountryProcess(); cp.Edit(pais); return(RedirectToAction("Index")); }
public ActionResult Edit(int id, FormCollection collection) { try { var category = countryProcess.Find(id); category.Name = collection["Name"]; category.ChangedOn = DateTime.Now; countryProcess.Edit(category); return(RedirectToAction("Index")); } catch { return(View()); } }