コード例 #1
0
 public ActionResult CrearSocio(SocioDtoModel socioModel)
 {
     try
     {
         _socioProvider.AddObject(socioModel);
         return(RedirectToAction("VerSocios"));
     }
     catch
     {
         return(RedirectToAction("VerSocios"));
     }
 }
コード例 #2
0
 public ActionResult CrearGrupo(GroupDtoModel groupModel)
 {
     try
     {
         _groupProvider.AddObject(groupModel);
         return(RedirectToAction("VerGrupos"));
     }
     catch
     {
         return(RedirectToAction("VerGrupos"));
     }
 }
コード例 #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"));
     }
 }
コード例 #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"));
     }
 }
コード例 #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"));
     }
 }
コード例 #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"));
     }
 }