Exemplo n.º 1
0
        public WebScrapeOutput Format(int Page, string UniqueID, string MappingID)
        {
            WebScrapeOutput output = new WebScrapeOutput();

            output = new WebScrapeOutput()
            {
                UniqueID          = UniqueID,
                MappingID         = MappingID,
                WebsiteURL        = Website,
                ProductDetails    = ProductDetails,
                PageNumber        = Page,
                OutputSheetNumber = OutputSheetNumber,
                CompletedOn       = DateTime.Now.ToString()
            };

            return(output.Clone());
        }
Exemplo n.º 2
0
        public static WebScrapeOutput Clone(this WebScrapeOutput output)
        {
            var serialized = JsonConvert.SerializeObject(output);

            return(JsonConvert.DeserializeObject <WebScrapeOutput>(serialized));
        }