Ejemplo n.º 1
0
        public ActionResult IndexForUpdatedInLastDays()
        {
            var contacts  = _contactQueries.GetAllUpdatedInLastDays().ToList();
            var viewModel = _mapperForContact.MapToUpdatedInLastDaysViewModel(contacts);

            return(View(viewModel));
        }
Ejemplo n.º 2
0
        public ActionResult Index()
        {
            int accountCreatedCount = _accountQueries.GetCountOfCreatedInLastDays();
            int accountUpdatedCount = _accountQueries.GetCountOfUpdatedInLastDays();
            int contactCreatedCount = _contactQueries.GetAllCreatedInLastDays().Count;
            int contactUpdatedCount = _contactQueries.GetAllUpdatedInLastDays().Count;
            var viewModel           = _mapperForHome.MapToHomeViewModel(accountCreatedCount, accountUpdatedCount, contactCreatedCount, contactUpdatedCount);

            return(View(viewModel));
        }