/// <summary> /// Obtiene de la bd los parámetros para el servicio /// </summary> /// <returns></returns> private RequestBodyContent GetBodyContent() { RequestBodyContent _GetBodyContent = null; try { SyncRepository sync = new SyncRepository(); using (var entity = new db_SeguimientoProtocolo_r2Entities()) { var res = entity.spGetMaxTableCiRegistroRecurrent().FirstOrDefault(); if (res != null) { _GetBodyContent = new RequestBodyContent() { fechaActual =(long)res.FechaInicio, //sync.GetCurrentDate(), fechaFin = (long)res.FechaFin, LastModifiedDate = (long)res.LastModifiedDate, ServerLastModifiedDate = (long)res.ServerLastModifiedDate }; } } } catch (Exception ex) { throw ex; } return _GetBodyContent; }