Example #1
0
 public AuthorsDataFromWiki(Entities context, Author author)
 {
     if (AuthorNameIsValidated(author.Name))
     {
         AuthorPage        authorPage        = new AuthorPage(author.Name);
         ProcessAuthorPage processAuthorPage = new ProcessAuthorPage(authorPage.AuthorPageUrl, authorPage.AuthorPageHtmlDocument);
         if (processAuthorPage.AuthorData != null)
         {
             UpdateAuthorResources(context, author, processAuthorPage.AuthorData);
         }
         else
         {
             UpdateAuthorState(context, author);
         }
     }
     else
     {
         UpdateAuthorState(context, author);
     }
 }
Example #2
0
 public AuthorsDataFromWiki(Entities context, Author author)
 {
     if (AuthorNameIsValidated(author.Name))
     {
         AuthorPage authorPage = new AuthorPage(author.Name);
         ProcessAuthorPage processAuthorPage = new ProcessAuthorPage(authorPage.AuthorPageUrl, authorPage.AuthorPageHtmlDocument);
         if (processAuthorPage.AuthorData != null)
         {
             UpdateAuthorResources(context, author, processAuthorPage.AuthorData);
         }
         else
         {
             UpdateAuthorState(context, author);
         }
     }
     else
     {
         UpdateAuthorState(context, author);
     }
 }