public void SearchExistItemGoodRead() { GoodReadSearchRepository repo = new GoodReadSearchRepository(); var result = repo.Results("lord of the ring"); Assert.NotEmpty(result); }
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)); }