// // GET: /Home/ public ActionResult Index() { List <ApplicationHomeModel> result = new List <ApplicationHomeModel>(); if (UserProfileContext.Current.User != null) { WLogRoleProvider roleProvider = new WLogRoleProvider(); UserEntity currentUser = RepositoryContext.Current.Users.GetByUsername(Membership.GetUser().UserName); List <ApplicationEntity> apps = RepositoryContext.Current.Applications.GetAppplicationForUser(currentUser); result.AddRange(ConversionHelper.ConvertListEntityToListApplicationHome(apps)); } return(View(result)); }
// // GET: /Home/ public ActionResult Index() { List<ApplicationHomeModel> result = new List<ApplicationHomeModel>(); if (UserProfileContext.Current.User != null) { WLogRoleProvider roleProvider = new WLogRoleProvider(); UserEntity currentUser=RepositoryContext.Current.Users.GetByUsername(Membership.GetUser().UserName); List<ApplicationEntity> apps = RepositoryContext.Current.Applications.GetAppplicationForUser(currentUser); result.AddRange(ConversionHelper.ConvertListEntityToListApplicationHome(apps)); } return View(result); }