Exemple #1
0
        public void SearchSmokeTest()
        {
            Guid providerId      = new Guid("1543DD05-83D2-484D-9D59-16278995D4F1");
            Guid providerGroupId = new Guid("284A43DD-F676-41E4-A713-EBC848CF85DB");


            var result = new GetPetLinkSearch()
            {
                ProviderGroupId = providerGroupId, Query = "jojo"
            }.ExecuteList(false);
        }
Exemple #2
0
        public JsonResult PetOwner(Guid providerGroupId, [DataSourceRequest] DataSourceRequest request)
        {
            string filterValue = string.Empty;

            // Step 1. Get the filter
            if (request.Filters != null && request.Filters.Count > 0)
            {
                FilterDescriptor firstFilter = request.Filters[0] as FilterDescriptor;

                if (firstFilter != null)
                {
                    filterValue = firstFilter.Value as string;
                }
            }

            var result = new GetPetLinkSearch()
            {
                ProviderGroupId = providerGroupId, Query = filterValue
            }.ExecuteList();

            //var result = SearchService.QueryPetOwner(providerGroupId, filterValue);

            return(Json(new { Data = result }));
        }