Пример #1
0
        public async Task AddAsync(int accountId)
        {
            await _dbContext.AddAsync(new ClinicEntity { AccountId = accountId });

            await _dbContext.SaveChangesAsync();
        }
Пример #2
0
        public async Task AddAsync(int accountId, int doctorId)
        {
            await _dbContext.AddAsync(new PatientEntity { AccountId = accountId, DoctorId = doctorId });

            await _dbContext.SaveChangesAsync();
        }
Пример #3
0
        public async Task AddAsync(IlnessEntity ilness)
        {
            await _dbContext.AddAsync(ilness);

            await _dbContext.SaveChangesAsync();
        }
Пример #4
0
        public async Task AddAsync(int accountId, int clinicId)
        {
            await _dbContext.AddAsync(new DoctorEntity { AccountId = accountId, ClinicId = clinicId });

            await _dbContext.SaveChangesAsync();
        }
Пример #5
0
        public async Task AddAsync(DeviceEntity device)
        {
            await _dbContext.AddAsync(device);

            await _dbContext.SaveChangesAsync();
        }