// GET: Author public ActionResult Index() { return(View(new Models.ModelWithController <IEnumerable <Models.Author> > { ClientController = "author-ctrl", Contents = Mapper.Map <IEnumerable <Data.Author>, IEnumerable <Models.Author> >(Authoring.GetAllAuthors()) })); }
private static Dictionary <long, string> GenerateCachedAuthors() { return(Authoring.GetAllAuthors().ToDictionary(a => a.ID, a => a.ToString())); }