public ObservableCollection<RegistroModel> Download_CIRegistroRecurrent(long fechaActual, long fechaFin, long LastModifiedDate, long ServerLastModifiedDate) { ObservableCollection<RegistroModel> registros = new ObservableCollection<RegistroModel>(); try { using (var repository = new RegistroRepository()) { registros = repository.GetRegistrosRecurrent(fechaActual, fechaFin, LastModifiedDate, ServerLastModifiedDate); } } catch (Exception) { ; } return registros; }
public void GetRegistrosOnDemandTest() { RegistroRepository r = new RegistroRepository(); r.GetRegistrosOnDemand(20140403, 1000); }
public ObservableCollection<RegistroModel> Download_CIRegistroOnDemand(long currentDate, long? idPuntoMedicion) { ObservableCollection<RegistroModel> registros = new ObservableCollection<RegistroModel>(); try { using(var repository=new RegistroRepository()) { registros = repository.GetRegistrosOnDemand(currentDate, (long)idPuntoMedicion); } } catch (Exception) { ; } return registros; }