public List <SyncAdapter> GetUserNewVersion(string tableName, long versionId, Guid userId) { try { var list = new SyncAdapterBO().GetUserNewVersion(this.ConnectionHandler, tableName, versionId, userId); return(list.ToList()); } catch (KnownException ex) { Log.Save(ex.Message, LogType.ApplicationError, ex.Source, ex.StackTrace); throw new KnownException(ex.Message, ex); } catch (Exception ex) { Log.Save(ex.Message, LogType.ApplicationError, ex.Source, ex.StackTrace); throw new KnownException(ex.Message, ex); } }
public bool Exist(string tableName, string sourceId) { try { var exist = new SyncAdapterBO().Exist(this.ConnectionHandler, tableName, sourceId); return(exist); } catch (KnownException ex) { Log.Save(ex.Message, LogType.ApplicationError, ex.Source, ex.StackTrace); throw new KnownException(ex.Message, ex); } catch (Exception ex) { Log.Save(ex.Message, LogType.ApplicationError, ex.Source, ex.StackTrace); throw new KnownException(ex.Message, ex); } }