//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();
        }