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"); } }
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"); } }
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"); } }
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"); } }
public void EliminarSocio(int idSocio) { var socio = _socioProvider.GetObjectById(idSocio); _socioProvider.DeleteObject(socio); }
public void EliminarGrupo(int idGrupo) { var group = _groupProvider.GetObjectById(idGrupo); _groupProvider.DeleteObject(group); }