Example #1
0
 public EyeglassOrderController(string companyId, string officeNumber)
 {
     this.companyId               = companyId;
     this.officeNumber            = officeNumber;
     this.eyeglassOrderIt2Manager = new EyeglassOrderIt2Manager();
     this.patientInsuranceManager = new PatientInsuranceManager();
     this.eyeglassLensIt2Manager  = new EyeglassLensIt2Manager();
 }
Example #2
0
        /// <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;
        }