public ActionResult List() { if (!_permissionService.Authorize(StandardPermissionProvider.ManagePromotionFeeds)) { return(AccessDeniedView()); } var feedsModel = new List <PromotionFeedModel>(); var feeds = _promotionFeedService.LoadAllPromotionFeeds(); foreach (var feed in feeds) { feedsModel.Add(feed.ToModel()); } var gridModel = new GridModel <PromotionFeedModel> { Data = feedsModel, Total = feedsModel.Count() }; return(View(gridModel)); }