Changeset 1d32d5c for iknow-api/Services/Implementations/AuthService.cs
- Timestamp:
- 10/28/25 10:51:44 (11 months ago)
- Branches:
- master
- Children:
- f844b7e
- Parents:
- 28759eb (diff), e423ff3 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - git-author:
- Boris Gjorgjievski <69085722+imbrsk@…> (10/28/25 10:51:44)
- git-committer:
- GitHub <noreply@…> (10/28/25 10:51:44)
- File:
-
- 1 edited
-
iknow-api/Services/Implementations/AuthService.cs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
iknow-api/Services/Implementations/AuthService.cs
r28759eb r1d32d5c 45 45 46 46 await _userRepository.AddUserAsync(user); 47 int userId = user.Id; 48 var contactInfo = new ContactInfo 49 { 50 UserId = userId, 51 city = registerDto.city, 52 address = registerDto.address, 53 municipality = registerDto.municipality, 54 phoneNumber = registerDto.phoneNumber, 55 microsoftEmail = registerDto.microsoftEmail 56 }; 57 await _userRepository.AddContactAsync(contactInfo); 58 var enrollmentInfo = new EnrollmentInfo 59 { 60 UserId = userId, 61 enrollmentYear = registerDto.enrollmentYear, 62 quota = (Models.quota)registerDto.quotaType, 63 major = (Models.major)registerDto.majorType 64 }; 65 await _userRepository.AddEnrollmentAsync(enrollmentInfo); 66 await _userRepository.AddHighSchoolAsync(new HighSchool 67 { 68 UserId = userId, 69 GPA = registerDto.gpa, 70 tip = (Models.type)registerDto.tip 71 }); 47 72 return true; 48 73 }
Note:
See TracChangeset
for help on using the changeset viewer.
