public TbNotificaciones Buscar(int idNotificacion) { var response = client.Get("TbNotificaciones/" + idNotificacion); TbNotificaciones valor = JsonConvert.DeserializeObject <TbNotificaciones>(response.Body); return(valor); }
public void Actualizar(TbNotificaciones notificacion) { try { client.UpdateAsync("TbNotificaciones/" + notificacion.IDNotificacion, notificacion); } catch { }; }
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 { } }
public void Insertar(TbNotificaciones notificacion) { vNotificaciones.Insertar(notificacion); }
public void Actualizar(TbNotificaciones notificacion) { vNotificaciones.Actualizar(notificacion); }