Exemplo n.º 1
0
        public async Task AddAsync(int accountId)
        {
            await _dbContext.AddAsync(new ClinicEntity { AccountId = accountId });

            await _dbContext.SaveChangesAsync();
        }
Exemplo n.º 2
0
        public async Task AddAsync(int accountId, int doctorId)
        {
            await _dbContext.AddAsync(new PatientEntity { AccountId = accountId, DoctorId = doctorId });

            await _dbContext.SaveChangesAsync();
        }
Exemplo n.º 3
0
        public async Task AddAsync(AccountEntity account)
        {
            await _dbContext.Accounts.AddAsync(account);

            await _dbContext.SaveChangesAsync();
        }
Exemplo n.º 4
0
        public async Task AddAsync(int accountId, int clinicId)
        {
            await _dbContext.AddAsync(new DoctorEntity { AccountId = accountId, ClinicId = clinicId });

            await _dbContext.SaveChangesAsync();
        }
Exemplo n.º 5
0
        public async Task AddAsync(IlnessEntity ilness)
        {
            await _dbContext.AddAsync(ilness);

            await _dbContext.SaveChangesAsync();
        }
Exemplo n.º 6
0
        public async Task AddAsync(DeviceEntity device)
        {
            await _dbContext.AddAsync(device);

            await _dbContext.SaveChangesAsync();
        }