// GET: Activities
        public ActionResult Index(int?categoryId, DateTime?date)
        {
            var viewModel = new ActivityFiltersViewModel
            {
                Activities = _activityRepository.GetAllForeachUser(),
                Categories = _categoriesRepository.GetAll(),
                CategoryId = categoryId
            };

            viewModel.Activities = GetActivitiesFiltered(viewModel.Activities, categoryId, date);

            return(View(viewModel));
        }
        public ActionResult Dashboard(int?categoryId, DateTime?date, string userId)
        {
            var viewModel = new ActivityFiltersViewModel
            {
                Activities       = _activityRepository.GetAll(),
                Categories       = _categoriesRepository.GetAll(),
                ApplicationUsers = usersContext.Users.ToList()
            };

            if (String.IsNullOrEmpty(userId))
            {
                viewModel.Activities = GetActivitiesFiltered(viewModel.Activities, categoryId, date);
            }
            else
            {
                viewModel.Activities = GetActivitiesFiltered(viewModel.Activities, categoryId, date, userId);
            }


            return(View(viewModel));
        }