Пример #1
0
 public DatabaseDtoP(string connectionString)
 {
     ConnectString = connectionString;
         dtopallocation = new MongoHelper<DToPAllocation>(ConnectString);
         PAccount = new DatabasePAccount(ConnectString);
         DAccount = new DatabaseDAccount(ConnectString);
 }
Пример #2
0
    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
            {

            }
    }
Пример #3
0
 public DatabaseDtoP()
 {
     dtopallocation = new MongoHelper<DToPAllocation>();
         PAccount = new DatabasePAccount();
         DAccount = new DatabaseDAccount();
 }