public async Task <long> CreateAsync(Treatment treatment)
        {
            await _diagnoseContext.Treatments.AddAsync(treatment);

            await _diagnoseContext.SaveChangesAsync();

            return(treatment.Id);
        }
Пример #2
0
        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);
        }
Пример #4
0
 internal async Task UpdateAsync()
 {
     await _diagnoseContext.SaveChangesAsync();
 }