public IList<FormEntry> GetFormResponses(string form, string field, object value) { if (string.IsNullOrEmpty(form)) { throw new ArgumentNullException("form"); } PluginDataQueryParameter parameter = new PluginDataQueryParameter(); parameter.PropertyName = field; if (value == null) { parameter.PropertyValue = string.Empty; } else { parameter.PropertyValue = value.ToString(); } int total; return PluginStore.Instance.ReadExact<FormEntry>(this, parameter, 0, 100, out total); }
public IList<Form> GetForms(string query, int start, int count, out int total) { if ((start < 0) || (count < 0)) { throw new ArgumentException("start or count"); } PluginDataQueryParameter parameter = null; if (!string.IsNullOrEmpty(query)) { parameter = new PluginDataQueryParameter("name", query); } return PluginStore.Instance.Read<Form>(this, parameter, start, count, out total); }