public ActionResult CreateModal(int personId) { Person p = this.personTasks.GetPerson(personId); if (p != null) { ActiveScreeningViewModel vm = new ActiveScreeningViewModel(p); vm.DateActivelyScreened = string.Format("{0:yyyy-MM-dd}", DateTime.Now); AdminUser user = this.userTasks.GetAdminUser(User.Identity.Name); if (user != null) { vm.ScreenedById = user.Id; vm.ScreenedByName = user.ToString(); } IList <Request> requests; IEnumerable <AdminUser> users; var profiler = MiniProfiler.Current; using (profiler.Step("Getting valid requests")) requests = this.requestTasks.GetValidRequests(); using (profiler.Step("Getting active users")) users = this.userTasks.GetAllAdminUsers().Where(x => !x.Archive); vm.PopulateDropDowns(requests, users); return(View(vm)); } return(new HttpNotFoundResult()); }