public ActionResult IndexForUpdatedInLastDays() { var contacts = _contactQueries.GetAllUpdatedInLastDays().ToList(); var viewModel = _mapperForContact.MapToUpdatedInLastDaysViewModel(contacts); return(View(viewModel)); }
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)); }