示例#1
0
 // 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())
     }));
 }
示例#2
0
 private static Dictionary <long, string> GenerateCachedAuthors()
 {
     return(Authoring.GetAllAuthors().ToDictionary(a => a.ID, a => a.ToString()));
 }