//class constructor public ReferralService() { ReasonRepository = new ReasonService(); DoctorsRepository = new DoctorService(); if (!WebSecurity.Initialized) { WebSecurity.InitializeDatabaseConnection("DefaultConnection", "UserProfile", "UserId", "UserName", autoCreateTables: true); } }
public DoctorService() { if (!WebSecurity.Initialized) { WebSecurity.InitializeDatabaseConnection("DefaultConnection", "UserProfile", "UserId", "UserName", autoCreateTables: true); } PatientRepository = new PatientService(); ReasonRepository = new ReasonService(); }