protected static Dictionary <string, object> GetPageRecord(int pageId, string token, int recordId) { var platformResult = PlatformUtils.Call <SelectQueryResult>(token, platformClient => platformClient.GetPageRecord(pageId, recordId, false)); return(MpFormatToDictionary(platformResult)); }
protected static List <Dictionary <string, object> > GetSubPageRecords(int subPageId, int recordId, String token) { var platformResult = PlatformUtils.Call <SelectQueryResult>(token, platformClient => platformClient.GetSubpageRecords(subPageId, recordId, string.Empty, string.Empty, 0)); return(MpFormatToList(platformResult)); }
protected static List <Dictionary <string, object> > GetPageRecords(int pageId, string token, string searchString) { var platformResult = PlatformUtils.Call <SelectQueryResult>(token, platformClient => platformClient.GetPageRecords(pageId, searchString, string.Empty, 0)); return(MpFormatToList(platformResult)); }
public static List <Dictionary <string, object> > GetSubpageViewRecords(int viewId, int parentRecordId, string token, string searchString = "", string sort = "", int top = 0) { var result = PlatformUtils.Call <SelectQueryResult>(token, platformClient => platformClient.GetSubpageViewRecords(viewId, parentRecordId, searchString, sort, top)); return(MPFormatConversion.MPFormatToList(result)); }
protected static int CreateSubPageRecord(int pageId, int parentRecordId, Dictionary <string, object> dictionary, String token) { var recordId = PlatformUtils.Call(token, platformClient => platformClient.CreateSubpageRecord(pageId, parentRecordId, dictionary, false)); return(recordId); }
public static int CreateRecord(int pageId, Dictionary <string, object> dictionary, String token, bool quickadd = true) { return(PlatformUtils.Call <int>(token, platformClient => platformClient.CreatePageRecord(pageId, dictionary, quickadd))); }
public static int CreateSubRecord(int subPageId, int parentRecordId, Dictionary <string, object> dictionary, String token, bool quickadd = false) { return(PlatformUtils.Call <int>(token, platformClient => platformClient.CreateSubpageRecord(subPageId, parentRecordId, dictionary, quickadd))); }
public static SelectQueryResult GetRecord(int pageId, int recordId, String token, bool quickadd = false) { return(PlatformUtils.Call <SelectQueryResult>(token, platformClient => platformClient.GetPageRecord(pageId, recordId, quickadd))); }
public static SelectQueryResult GetRecords(int pageId, String token, String search = "", String sort = "") { return(PlatformUtils.Call <SelectQueryResult>(token, platformClient => platformClient.GetPageRecords(pageId, search, sort, 0))); }