Exemplo n.º 1
0
        // GET: Home
        public ActionResult Index(string award = null)
        {
            IEnumerable <AwardViewModel> viewModelAwards;
            IEnumerable <Award>          awards;

            awards = awardService.GetAwards().ToList();

            viewModelAwards = Mapper.Map <IEnumerable <Award>, IEnumerable <AwardViewModel> >(awards);
            return(View(viewModelAwards));
        }