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