C# 클래스 Commencement.Controllers.Helpers.RegistrationPopulator

상속: IRegistrationPopulator
파일 보기 프로젝트 열기: ucdavis/Commencement 1 사용 예제들

공개 메소드들

메소드 설명
PopulateRegistration ( RegistrationPostModel registrationPostModel, Student student, ModelStateDictionary modelState, bool adminUpdate = false ) : Registration
RegistrationPopulator ( IRepository specialNeedsRepository, IRepository registrationPetitionRepository, IRepository participationRepository, IRepository registrationRepository ) : System
UpdateRegistration ( Registration registration, RegistrationPostModel registrationPostModel, Student student, ModelStateDictionary modelState, bool adminUpdate = false ) : void

비공개 메소드들

메소드 설명
AddCeremonyParticipations ( Registration registration, List ceremonyParticipations, ModelStateDictionary modelState, bool adminUpdate = false ) : void
AddRegistrationPetitions ( Registration registration, List ceremonyParticipations, ModelStateDictionary modelState ) : void
GeneratePassword ( ) : string

Generate an 8 character AlphaNumeric password with no special characters

LoadSpecialNeeds ( List specialNeeds ) : List
NullOutBlankFields ( Registration registration ) : void
UpdateCeremonyParticipations ( Registration registration, List ceremonyParticipations, ModelStateDictionary modelState, bool adminUpdate = false ) : void
ValidateCeremonyParticipations ( List ceremonyParticipations, ModelStateDictionary modelState ) : void

Validates that the ceremonies the student has decided upon are all valid to be registered for together

Rules are: Student can register once per ceremony Student can register once per college Student can register for multiple ceremonies for different colleges

메소드 상세

PopulateRegistration() 공개 메소드

public PopulateRegistration ( RegistrationPostModel registrationPostModel, Student student, ModelStateDictionary modelState, bool adminUpdate = false ) : Registration
registrationPostModel RegistrationPostModel
student Student
modelState ModelStateDictionary
adminUpdate bool
리턴 Registration

RegistrationPopulator() 공개 메소드

public RegistrationPopulator ( IRepository specialNeedsRepository, IRepository registrationPetitionRepository, IRepository participationRepository, IRepository registrationRepository ) : System
specialNeedsRepository IRepository
registrationPetitionRepository IRepository
participationRepository IRepository
registrationRepository IRepository
리턴 System

UpdateRegistration() 공개 메소드

public UpdateRegistration ( Registration registration, RegistrationPostModel registrationPostModel, Student student, ModelStateDictionary modelState, bool adminUpdate = false ) : void
registration Registration
registrationPostModel RegistrationPostModel
student Student
modelState ModelStateDictionary
adminUpdate bool
리턴 void