public GetSavedSearchsCountForCustomFieldResponse GetSavedSearchsCountForCustomFieldById(GetSavedSearchsCountForCustomFieldRequest request)
        {
            GetSavedSearchsCountForCustomFieldResponse response = new GetSavedSearchsCountForCustomFieldResponse();
            var count = customFieldRepository.GetSavedSearchsCountForCustomFieldById(request.fieldId, request.valueOptionId);

            response.Count = count;
            return(response);
        }
Exemple #2
0
        public HttpResponseMessage GetSavedSearchsCountForCustomField(int fieldId, int?valueOptionId)
        {
            GetSavedSearchsCountForCustomFieldRequest request = new GetSavedSearchsCountForCustomFieldRequest()
            {
                fieldId = fieldId, valueOptionId = valueOptionId
            };
            GetSavedSearchsCountForCustomFieldResponse response = customFieldService.GetSavedSearchsCountForCustomFieldById(request);

            return(Request.BuildResponse(response));
        }