Exemplo n.º 1
0
 /// <summary>
 /// Initiates a MDM entity search and returns the first page of results as an Atom XML feed
 /// </summary>
 /// <param name="search">The deserialised search object from the request body</param>
 /// <returns>Response with appropriate status code and the first page of results along with links to further result pages</returns>
 public HttpResponseMessage Post([FromBody] EnergyTrading.Contracts.Search.Search search)
 {
     return(WebHandler(() =>
     {
         var key = search.ToKey <TContract>(service.ContractVersion);
         return this.Search(key, FirstPage);
     }));
 }