public static VMAnnouncementList Parse(List <UserAnnouncement> userAnnouncements, User loggedUser)
        {
            VMAnnouncementList result = new VMAnnouncementList
            {
                Announcements = userAnnouncements.Select(x => x.Announcement).ToList(),
                UserRole      = loggedUser.Role.Name
            };

            return(result);
        }
        public static VMAnnouncementList Parse(List <Announcement> announcements, User loggedUser)
        {
            VMAnnouncementList result = new VMAnnouncementList
            {
                Announcements = announcements,
                UserRole      = loggedUser.Role.Name
            };

            return(result);
        }