public bool Eliminar(Notificacion notificacion)
        {
            try
            {
                RepositorioNotificacion repoNotificacion = new RepositorioNotificacion();
                RepositorioSegmento     repoSegmento     = new RepositorioSegmento();

                int id = notificacion.Id;

                if (repoSegmento.EliminarPorNotificacion(notificacion))
                {
                    repoNotificacion.Eliminar(notificacion);

                    return(true);
                }
                return(false);
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.ToString());
                return(false);
            }
        }
Ejemplo n.º 2
0
 public ServicioRegistradorNotificacion()
 {
     repositorio = new RepositorioNotificacion();
 }
Ejemplo n.º 3
0
 public NotificacionController()
 {
     repositorio = new RepositorioNotificacion();
 }
 public ServicioEliminadorNotificacion()
 {
     repositorio = new RepositorioNotificacion();
 }