private bool TryParseNewFeed(string body, out RestMSFeed feedNew)
 {
     MemoryStream ms = null;
     try
     {
         ms = new MemoryStream(System.Text.Encoding.ASCII.GetBytes(body));
         feedNew = (RestMSFeed)_feedDeserializer.ReadObject(ms);
         return true;
     }
     catch (Exception)
     {
         feedNew = null;
         return false;
     }
     finally
     {
         if (ms != null)
             ms.Dispose();
     }
 }
        private HttpResponseMessage AddFeed(string name, RestMSFeed feed)
        {
            var addFeedCommand = new AddFeedCommand(
                domainName: name,
                name: feed.Name,
                type: feed.Type,
                title: feed.Title);
            _commandProcessor.Send(addFeedCommand);

            return BuildDomainItemCreatedReponse(name);
        }