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); }
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)); }