Badges.Controllers.NotificationsController.NavigationPartial C# (CSharp) Метод

NavigationPartial() публичный Метод

public NavigationPartial ( ) : System.Web.Mvc.ActionResult
Результат System.Web.Mvc.ActionResult
        public ActionResult NavigationPartial()
        {
            var unreadNotifications = RepositoryFactory.NotificationRepository.Queryable
                                                  .Where(x => x.To.Identifier == CurrentUser.Identity.Name)
                                                  .Where(x => x.Pending)
                                                  .OrderByDescending(x => x.Created);

            // Re-enable if the notification dropdown is going to be re-introduced
            //Notification[] recentNotifications = RepositoryFactory.NotificationRepository.Queryable
            //                                      .Where(x => x.To.Identifier == CurrentUser.Identity.Name)
            //                                      .OrderByDescending(x => x.Created)
            //                                      .Take(15)
            //                                      .ToArray();

            var model = new NotificationsPartialModel
            {
                UnreadNotificationCount = unreadNotifications.Count()

                // Re-enable if the notification dropdown is going to be re-introduced
                //RecentNotifications = recentNotifications
            };

            return View(model);
        }