예제 #1
0
        public TbNotificaciones Buscar(int idNotificacion)
        {
            var response           = client.Get("TbNotificaciones/" + idNotificacion);
            TbNotificaciones valor = JsonConvert.DeserializeObject <TbNotificaciones>(response.Body);

            return(valor);
        }
예제 #2
0
 public void Actualizar(TbNotificaciones notificacion)
 {
     try
     {
         client.UpdateAsync("TbNotificaciones/" + notificacion.IDNotificacion, notificacion);
     }
     catch { };
 }
예제 #3
0
 public void Insertar(TbNotificaciones notificacion)
 {
     try
     {
         var lista = Mostrar();
         if (lista != null)
         {
             notificacion.IDNotificacion = lista[lista.Count() - 1].IDNotificacion + 1;
         }
         else
         {
             notificacion.IDNotificacion = 1;
         };
         client.SetAsync("TbNotificaciones/" + notificacion.IDNotificacion, notificacion);
     }
     catch
     {
     }
 }
예제 #4
0
 public void Insertar(TbNotificaciones notificacion)
 {
     vNotificaciones.Insertar(notificacion);
 }
예제 #5
0
 public void Actualizar(TbNotificaciones notificacion)
 {
     vNotificaciones.Actualizar(notificacion);
 }