예제 #1
0
 public ActionResult Index()
 {
     ReaderRecommendationModel model = new ReaderRecommendationModel();
     var currentUser = this.userManager.GetUserByUserName(WebSecurity.CurrentUserName);
     model.ReaderId = this.readerManager.GetReaderByEmail(currentUser.Email).ReaderId;
     model.Items = this.recommendationManager.GetRecommendationForReader(model.ReaderId);
     return this.View(model);
 }
예제 #2
0
        public ActionResult Index()
        {
            ReaderRecommendationModel model = new ReaderRecommendationModel();
            var currentUser = this.userManager.GetUserByUserName(WebSecurity.CurrentUserName);

            model.ReaderId = this.readerManager.GetReaderByEmail(currentUser.Email).ReaderId;
            model.Items    = this.recommendationManager.GetRecommendationForReader(model.ReaderId);
            return(this.View(model));
        }