Skip to content

Instantly share code, notes, and snippets.

@detroitpro
Created May 31, 2010 06:12
Show Gist options
  • Save detroitpro/419590 to your computer and use it in GitHub Desktop.
Save detroitpro/419590 to your computer and use it in GitHub Desktop.
//
// POST: /Package/Edit/5
[AcceptVerbs(HttpVerbs.Post), UnitOfWork]
public ActionResult Edit(int id, Model.Package vm) {
try {
var package = _packageRepository.GetById(id);
package = Mapper.Map<Model.Package, Persistence.Package>(vm, package);
return RedirectToAction("Index");
} catch (Exception up) {
throw up;
//return View();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment