// INDEX: Friend public ActionResult Index() { List <Friend> friends = repository.ListFriends(); List <Friend> todayBirthDay = friendsHelpers.ListToDayBirthday(friends); ViewBag.FriendsOrderedByBirthDate = friendsHelpers.OrderFriendsByBirthDate(friends); ViewBag.dateNow = DateTime.Now; return(View( todayBirthDay.Select(el => new FriendViewModel { FriendId = el.FriendId, FriendName = el.FriendName, FriendLastName = el.FriendLastName, FriendBirthDate = el.FriendBirthDate, }))); }