public async Task <long> CreateAsync(Treatment treatment) { await _diagnoseContext.Treatments.AddAsync(treatment); await _diagnoseContext.SaveChangesAsync(); return(treatment.Id); }
public async Task CreateDoctor(string id, string eik) { await _diagnoseContext.Doctors.AddAsync(new Doctor() { UserId = id, EIK = eik, DiplomaNum = "None" }); await _diagnoseContext.SaveChangesAsync(); }
public async Task <long> CreateAsync(HealthCheck healthCheck) { await _diagnoseContext.HealthChecks.AddAsync(healthCheck); await _diagnoseContext.SaveChangesAsync(); return(healthCheck.Id); }
internal async Task UpdateAsync() { await _diagnoseContext.SaveChangesAsync(); }