Ejemplo n.º 1
0
 public ActionResult GetHeadwordList(IList <int> selectedCategoryIds, IList <long> selectedBookIds, int page, int pageSize)
 {
     using (var client = GetMainServiceClient())
     {
         var start = (page - 1) * pageSize;
         HeadwordListContract result = client.GetHeadwordList(selectedCategoryIds, selectedBookIds, start, pageSize, AreaBookType);
         return(Json(result));
     }
 }
Ejemplo n.º 2
0
        public HeadwordListContract ListSearchDictionariesResults(List <SearchCriteriaContract> searchCriterias)
        {
            var resultSearchCriteria = GetFilteredResultSearchCriterias(searchCriterias);

            if (resultSearchCriteria.ResultBooks == null)
            {
                return(null);
            }

            AdjustStartIndexes(resultSearchCriteria.ResultSpecifications);

            var stringResult = m_communicationManager.ListSearchDictionariesResults(resultSearchCriteria.ToXml());

            return(HeadwordListContract.FromXml(stringResult));
        }