Beispiel #1
0
 public async Task <ActionResult> OnGetAsync(string source)
 {
     if (source == "GitHub")
     {
         GithubProject = new CreateGithubProjectViewModel();
         return(Page());
     }
     else
     {
         throw new BusinessException("UnknowDocumentSourceExceptionMessage");
     }
 }
Beispiel #2
0
 public virtual async Task <ActionResult> OnGetAsync(string source)
 {
     if (source != null && source.ToLowerInvariant() == "github")
     {
         GithubProject = new CreateGithubProjectViewModel();
         return(Page());
     }
     else
     {
         throw new BusinessException("UnknowDocumentSourceExceptionMessage");
     }
 }