Esempio n. 1
0
        public ActionResult Results()
        {
            var dtos       = BracketsDataService.GetChecksHistoryList();
            var viewModels = Mapper.Map <IEnumerable <LogDto>, IEnumerable <CheckResultViewModel> >(dtos);

            return(View(viewModels));
        }
Esempio n. 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            var dtos       = BracketsDataService.GetChecksHistoryList();
            var viewModels = Mapper.Map <IEnumerable <LogDto>, IEnumerable <CheckResultViewModel> >(dtos);

            ResultsHistoryList.DataSource = viewModels;
            ResultsHistoryList.DataBind();
        }