コード例 #1
0
        public void SearchExistItemGoodRead()
        {
            GoodReadSearchRepository repo = new GoodReadSearchRepository();
            var result = repo.Results("lord of the ring");

            Assert.NotEmpty(result);
        }
コード例 #2
0
        public IActionResult Search(string id)
        {
            RepositoryExtensionFactory.CallActionStarting(id, RepositoryExtensionFactory.ApiActionType.Search);

            var result = repo.Results(id);//.ToList();

            var argsfinished = RepositoryExtensionFactory.CallActionFinished(id, RepositoryExtensionFactory.ApiActionType.Search);

            if (argsfinished.Cancel)
            {
                return(HttpBadRequest());
            }

            return(new ObjectResult(result));
        }