public EyeglassOrderController(string companyId, string officeNumber) { this.companyId = companyId; this.officeNumber = officeNumber; this.eyeglassOrderIt2Manager = new EyeglassOrderIt2Manager(); this.patientInsuranceManager = new PatientInsuranceManager(); this.eyeglassLensIt2Manager = new EyeglassLensIt2Manager(); }
public EyeglassLensController() { this.eyeglassLensIt2Manager = new EyeglassLensIt2Manager(); this.productsManager = new ProductsManager(); var user = new AuthorizationTicketHelper().GetUserInfo(); this.companyId = user.CompanyId; }
/// <summary> /// Initializes a new instance of the <see cref="EyeglassOrderController"/> class. /// </summary> public EyeglassOrderController() { this.eyeglassOrderIt2Manager = new EyeglassOrderIt2Manager(); this.patientInsuranceManager = new PatientInsuranceManager(); this.eyeglassLensIt2Manager = new EyeglassLensIt2Manager(); if (!this.User.Identity.IsAuthenticated) { return; } var authorizationTicketHelper = new AuthorizationTicketHelper(); this.companyId = authorizationTicketHelper.GetCompanyId(); this.officeNumber = authorizationTicketHelper.GetPracticeLocationId(); this.userId = authorizationTicketHelper.GetUserInfo().Id; }