BC.Web.Controllers.NotificationsController.GetAllSorted C# (CSharp) Method

GetAllSorted() private method

private GetAllSorted ( ) : IEnumerable
return IEnumerable
        private IEnumerable<NotificationModel> GetAllSorted()
        {

            var userId = this.User.Identity.GetUserId();
            return this.data.Notifications.All()
                .Where(n => n.UserId == userId)
                .OrderBy(g => g.DateCreated)
                .Select(NotificationModel.FromNotification);
        }
    }