コード例 #1
0
 public void EliminarAhorro(int idpago)
 {
     try
     {
         var ahorro = _ahorroProvider.GetObjectById(idpago);
         _ahorroProvider.DeleteObject(ahorro);
         //delete ok
         TempData["SavingsAction"] = "DOk";
     }
     catch
     {
         //delete failed
         TempData["SavingsAction"] = "DF";
         RedirectToAction("VerAhorros");
     }
 }
コード例 #2
0
 public void EliminarPlan(int idPlan)
 {
     try
     {
         var plan = _planProvider.GetObjectById(idPlan);
         //delete ok
         TempData["SavingsAction"] = "DOk";
         _planProvider.DeleteObject(plan);
     }
     catch
     {
         //delete failed
         TempData["SavingsAction"] = "DF";
         RedirectToAction("VerPlanes");
     }
 }
コード例 #3
0
 public void EliminarGrupo(int idGrupo)
 {
     try
     {
         var group = _groupProvider.GetObjectById(idGrupo);
         _groupProvider.DeleteObject(group);
         //delete ok
         TempData["SavingsAction"] = "DOk";
     }
     catch
     {
         //delete failed
         TempData["SavingsAction"] = "DF";
         RedirectToAction("VerGrupos");
     }
 }
コード例 #4
0
 public void EliminarSocio(int idSocio)
 {
     try
     {
         var socio = _socioProvider.GetObjectById(idSocio);
         //delete ok
         TempData["SavingsAction"] = "DOk";
         _socioProvider.DeleteObject(socio);
     }
     catch
     {
         //delete failed
         TempData["SavingsAction"] = "UF";
         RedirectToAction("VerSocios");
     }
 }
コード例 #5
0
        public void EliminarSocio(int idSocio)
        {
            var socio = _socioProvider.GetObjectById(idSocio);

            _socioProvider.DeleteObject(socio);
        }
コード例 #6
0
        public void EliminarGrupo(int idGrupo)
        {
            var group = _groupProvider.GetObjectById(idGrupo);

            _groupProvider.DeleteObject(group);
        }