Beispiel #1
0
 public PartialViewResult CurrentWeekHighPointUsers()
 {
     using (UnitOfWorkManager.NewUnitOfWork())
     {
         var highEarners = MemberPointsService.GetCurrentWeeksPoints(20);
         var viewModel   = new HighEarnersPointViewModel {
             HighEarners = highEarners
         };
         return(PartialView(PathHelper.GetThemePartialViewPath("CurrentWeekHighPointUsers"), viewModel));
     }
 }
Beispiel #2
0
 public PartialViewResult GetThisWeeksTopEarners()
 {
     if (Request.IsAjaxRequest())
     {
         using (UnitOfWorkManager.NewUnitOfWork())
         {
             var highEarners = MemberPointsService.GetCurrentWeeksPoints(20);
             var viewModel   = new HighEarnersPointViewModel {
                 HighEarners = highEarners
             };
             return(PartialView(PathHelper.GetThemePartialViewPath("GetThisWeeksTopEarners"), viewModel));
         }
     }
     return(null);
 }