예제 #1
0
        public async Task <MyHtmlModel> GetMyHtmlModel(string path)
        {
            MyHtmlModel model = repository.GetHtmlModelByLink(path);

            if (model == null)
            {
                crawler = WebCrawler.GetInstance();
                model   = await crawler.GetMyHtmlModel(path);

                await repository.Create(model);
            }

            return(model);
        }