Exemplo n.º 1
0
 public ActionResult CrearSocio(SocioDtoModel socioModel)
 {
     try
     {
         _socioProvider.AddObject(socioModel);
         return(RedirectToAction("VerSocios"));
     }
     catch
     {
         return(RedirectToAction("VerSocios"));
     }
 }
Exemplo n.º 2
0
 public ActionResult CrearGrupo(GroupDtoModel groupModel)
 {
     try
     {
         _groupProvider.AddObject(groupModel);
         return(RedirectToAction("VerGrupos"));
     }
     catch
     {
         return(RedirectToAction("VerGrupos"));
     }
 }
Exemplo n.º 3
0
 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"));
     }
 }
Exemplo n.º 4
0
 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"));
     }
 }
Exemplo n.º 5
0
 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"));
     }
 }
Exemplo n.º 6
0
 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"));
     }
 }