public ActionResult CrearSocio(SocioDtoModel socioModel) { try { _socioProvider.AddObject(socioModel); return(RedirectToAction("VerSocios")); } catch { return(RedirectToAction("VerSocios")); } }
public ActionResult CrearGrupo(GroupDtoModel groupModel) { try { _groupProvider.AddObject(groupModel); return(RedirectToAction("VerGrupos")); } catch { return(RedirectToAction("VerGrupos")); } }
public ActionResult CrearAhorro(AhorroDtoModel ahorroModel) { try { _ahorroProvider.AddObject(ahorroModel); //creation ok TempData["SavingsAction"] = "SOk"; return(RedirectToAction("VerAhorros")); } catch { //creation failed TempData["SavingsAction"] = "SF"; return(RedirectToAction("VerAhorros")); } }
public ActionResult CrearPlan(PlanDtoModel planModel) { try { _planProvider.AddObject(planModel); //creation ok TempData["SavingsAction"] = "SOk"; return(RedirectToAction("VerPlanes")); } catch { //creation failed TempData["SavingsAction"] = "SF"; return(RedirectToAction("VerPlanes")); } }
public ActionResult CrearGrupo(GroupDtoModel groupModel) { try { _groupProvider.AddObject(groupModel); //creation ok TempData["SavingsAction"] = "SOk"; return(RedirectToAction("VerGrupos")); } catch { //creation failed TempData["SavingsAction"] = "SF"; return(RedirectToAction("VerGrupos")); } }
public ActionResult CrearSocio(SocioDtoModel socioModel) { try { _socioProvider.AddObject(socioModel); //creation ok TempData["SavingsAction"] = "SOk"; return(RedirectToAction("VerSocios")); } catch { //creation ok TempData["SavingsAction"] = "SF"; return(RedirectToAction("VerSocios")); } }