public ContactLensOrderController(string practiceId, string officeNumber) { this.companyId = practiceId; this.officeNumber = officeNumber; this.contactLensOrderIt2Manager = new ContactLensOrderIt2Manager(); this.patientInsuranceManager = new PatientInsuranceManager(); }
/// <summary> /// Initializes a new instance of the <see cref="ContactLensOrderController"/> class. /// </summary> public ContactLensOrderController() { this.contactLensOrderIt2Manager = new ContactLensOrderIt2Manager(); this.patientInsuranceManager = new PatientInsuranceManager(); if (!this.User.Identity.IsAuthenticated) { return; } var authorizationTicketHelper = new AuthorizationTicketHelper(); this.companyId = authorizationTicketHelper.GetCompanyId(); this.officeNumber = authorizationTicketHelper.GetPracticeLocationId(); this.userId = authorizationTicketHelper.GetUserInfo().Id; }