Example #1
0
        // ordenar lista
        public ActionResult Index()
        {
            var repository = new FriendsRepository();
            var friends    = repository.GetAllFriends();

            return(View(
                       friends.Select(a => new FriendViewModel {
                Id = a.Id,
                FristName = a.FristName,
                LastName = a.LastName,
                BirthDate = a.BirthDate
            })));
        }