public ActionResult Index(int id, string lang, string urlFriendlytitle) { ActionResult actionResult; CookieGetterAndSetter.SetLanguageCookie(lang); try { BlogEntryDo blogEntry = this._blogLogic.GetBlogEntry(id); BlogEntry blogEntry1 = new BlogEntry() { BlogContent = blogEntry.BlogContent, BlogPostDate = blogEntry.BlogPostDate, GameAbbrev = blogEntry.GameAbbrev.ToLower(), GameFullName = SafeResourceFetcher.GetResource(string.Concat("Game_", blogEntry.GameAbbrev.ToUpper()), lang), RegionAbbrev = blogEntry.RegionAbbrev.ToLower(), RegionFullName = blogEntry.RegionFullName, Title = blogEntry.Title, LanguageAbbrev = blogEntry.LanguageAbbrev.ToLower(), EntryNumber = blogEntry.EntryNumber, AnchoredLink = blogEntry.AnchoredLink, UserLanguageAbbrev = lang }; actionResult = base.View(blogEntry1); } catch (OverflowException overflowException) { throw new HttpException(404, "Not found."); } catch (NullReferenceException nullReferenceException) { throw new HttpException(404, "Not found."); } return actionResult; }
public ActionResult MobileApp(int id, string lang, string game, string device) { ActionResult actionResult; try { BlogEntryDo blogEntry = this._blogLogic.GetBlogEntry(id); BlogEntry blogEntry1 = new BlogEntry() { BlogContent = blogEntry.BlogContent, BlogPostDate = blogEntry.BlogPostDate, GameAbbrev = blogEntry.GameAbbrev.ToLower(), GameFullName = SafeResourceFetcher.GetResource(string.Concat("Game_", blogEntry.GameAbbrev.ToUpper()), lang), RegionAbbrev = blogEntry.RegionAbbrev.ToLower(), RegionFullName = blogEntry.RegionFullName, Title = blogEntry.Title, LanguageAbbrev = blogEntry.LanguageAbbrev.ToLower(), EntryNumber = blogEntry.EntryNumber, AnchoredLink = blogEntry.AnchoredLink }; actionResult = base.View("MobileAppBlogEntry", blogEntry1); } catch (OverflowException overflowException) { throw new HttpException(404, "Not found."); } catch (NullReferenceException nullReferenceException) { throw new HttpException(404, "Not found."); } return actionResult; }