예제 #1
0
 //class constructor
 public ReferralService()
 {
     ReasonRepository  = new ReasonService();
     DoctorsRepository = new DoctorService();
     if (!WebSecurity.Initialized)
     {
         WebSecurity.InitializeDatabaseConnection("DefaultConnection", "UserProfile", "UserId", "UserName", autoCreateTables: true);
     }
 }
예제 #2
0
        public DoctorService()
        {
            if (!WebSecurity.Initialized)
            {
                WebSecurity.InitializeDatabaseConnection("DefaultConnection", "UserProfile", "UserId", "UserName", autoCreateTables: true);
            }

            PatientRepository = new PatientService();
            ReasonRepository  = new ReasonService();
        }