public RestMSDomain Get(string name) { //TODO: Get needs Last Modified and ETag. var domainRetriever = new DomainRetriever(domainRepository, feedRepository, pipeRepository); return(domainRetriever.Retrieve(new Name(name))); }
HttpResponseMessage BuildDomainItemCreatedReponse(string domainName) { var domainRetriever = new DomainRetriever(domainRepository, feedRepository, pipeRepository); var item = domainRetriever.Retrieve(new Name(domainName)); var response = Request.CreateResponse <RestMSDomain>(HttpStatusCode.Created, item); response.Headers.Location = new Uri(item.Href); return(response); }
public RestMSDomain Get(string name) { var domainRetriever = new DomainRetriever(domainRepository, feedRepository, pipeRepository); return(domainRetriever.Retrieve(new Name(name))); }