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)); }
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)); }