public ActionResult Create(OrdenPago model) { try { if (ModelState.IsValid) { var entity = Mapper.Map <Business.Entities.OrdenPago>(model); BCOrdenPago.Create(entity); return(RedirectToAction("Index")); } } catch { //todo: } return(View(model)); }
public ActionResult Create(OrdenPago model) { try { if (ModelState.IsValid) { var entity = Mapper.Map <Business.Entities.OrdenPago>(model); BCOrdenPago.Create(entity); return(RedirectToAction("Index")); } } catch { //todo: } return(View(model)); }