public async Task <ActionResult> Author(string authorUrlName, string trainingProviderName) { if (string.IsNullOrWhiteSpace(trainingProviderName) || string.IsNullOrWhiteSpace(authorUrlName)) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } var authorInfo = await CatalogManager.GetAuthorInfoAsync(authorUrlName, trainingProviderName, UserSpecializations); if (authorInfo == null) { return(HttpNotFound()); } return(View(authorInfo)); }