public DatabaseDtoP(string connectionString) { ConnectString = connectionString; dtopallocation = new MongoHelper<DToPAllocation>(ConnectString); PAccount = new DatabasePAccount(ConnectString); DAccount = new DatabaseDAccount(ConnectString); }
public void Create(DoctorDetails details) { DatabaseDAccount logininfo = new DatabaseDAccount(ConnectString); // Only Create if account exists in Doctor Patient Accounts collection and not already in details if ((logininfo.CheckUserName(details.DUserName)) && (!CheckUserName(details.DUserName))) { doctordetails.Collection.Save(details); } else { } }
public DatabaseDtoP() { dtopallocation = new MongoHelper<DToPAllocation>(); PAccount = new DatabasePAccount(); DAccount = new DatabaseDAccount(); }