/// <summary> /// Displays all pages for a particular user. /// </summary> /// <param name="id">The username</param> /// <param name="encoded">Whether the username paramter is Base64 encoded.</param> /// <returns>An <see cref="IEnumerable`PageSummary"/> as the model.</returns> public ActionResult ByUser(string id,bool? encoded) { // Usernames are base64 encoded by roadkill (to cater for usernames like domain\john). // However the URL also supports humanly-readable format, e.g. /ByUser/chris if (encoded == true) { id = id.FromBase64(); } ViewData["Username"] = id; PageManager manager = new PageManager(); return View(manager.AllPagesCreatedBy(id)); }