public async Task <ActionResult <ConfDoctor> > AddConfDoctorAsync(ConfDoctor confDoctors)
        {
            var addReturn = await _confDoctorsRepository.Add(confDoctors);

            if (addReturn != null)
            {
                return(CreatedAtAction("GetConfDoctor", new { id = confDoctors.Id }, confDoctors));
            }

            return(BadRequest());
        }
        public async Task <ActionResult <ConfDoctor> > UpdateConfDoctorAsync(int id, ConfDoctor confDoctors)
        {
            if (id != confDoctors.Id)
            {
                return(BadRequest());
            }

            var updateReturn = await _confDoctorsRepository.Update(id, confDoctors);

            if (updateReturn != null)
            {
                return(Ok(confDoctors));
            }

            return(BadRequest());
        }