public UniversityController() { universityService = new UniversityAppService(); regionService = new RegionAppService(); provinces = regionService.GetFiltered(r => r.Class == 1); var universityTypeCollection = Enum.GetNames(typeof(UniversityType)); universityTypes = new Dictionary<string, string>(); foreach (var universityType in universityTypeCollection) universityTypes.Add(universityType, universityType); schoolTypes = new Dictionary<string, string>(); var schoolTypeCollection = Enum.GetNames(typeof(SchoolType)); foreach (var schoolType in schoolTypeCollection) schoolTypes.Add(schoolType, schoolType); }
public UserController() { userService = new UserAppService(); regionService = new RegionAppService(); universityService = new UniversityAppService(); }