public GbstListsModel Execute(GbstListsRequest request) { var dataSet = _session.CreateDataSet(); var listGeneric = dataSet.CreateGeneric("gbst_lst"); listGeneric.DataFields.Add("title"); listGeneric.AppendSort("title", true); listGeneric.Query(); var lists = listGeneric.DataRows().Select(s => s.AsString("title")).ToArray(); return new GbstListsModel {Lists = lists}; }
public GbstListsModel Execute(GbstListsRequest request) { var dataSet = _session.CreateDataSet(); var listGeneric = dataSet.CreateGeneric("gbst_lst"); listGeneric.DataFields.Add("title"); listGeneric.AppendSort("title", true); listGeneric.Query(); var lists = listGeneric.DataRows().Select(s => s.AsString("title")).ToArray(); return(new GbstListsModel { Lists = lists }); }