Esempio n. 1
0
        public ActionResult Index()
        {
            ADDomain    domain = new ADDomain();
            ViewUsersVM users  = new ViewUsersVM();

            users.RecentlyCreated = domain.GetUsersByCriteria(AdvancedSearchFilter.DateCreated, DateTime.Now.AddDays(-7)).Take(10).ToList();

            return(View(users));
        }
Esempio n. 2
0
        public ActionResult Index()
        {
            ADDomain    domain = new ADDomain();
            ViewUsersVM users  = new ViewUsersVM();

            // by default, we will take up to 10 of the recently created users
            // should this be a db setting?
            users.RecentlyCreated = domain.GetUsersByCriteria(AdvancedSearchFilter.DateCreated, DateTime.Now.AddDays(-7))
                                    .Take(10)
                                    .ToList();

            return(View(users));
        }