public async Task AddAsync(int accountId) { await _dbContext.AddAsync(new ClinicEntity { AccountId = accountId }); await _dbContext.SaveChangesAsync(); }
public async Task AddAsync(int accountId, int doctorId) { await _dbContext.AddAsync(new PatientEntity { AccountId = accountId, DoctorId = doctorId }); await _dbContext.SaveChangesAsync(); }
public async Task AddAsync(IlnessEntity ilness) { await _dbContext.AddAsync(ilness); await _dbContext.SaveChangesAsync(); }
public async Task AddAsync(int accountId, int clinicId) { await _dbContext.AddAsync(new DoctorEntity { AccountId = accountId, ClinicId = clinicId }); await _dbContext.SaveChangesAsync(); }
public async Task AddAsync(DeviceEntity device) { await _dbContext.AddAsync(device); await _dbContext.SaveChangesAsync(); }