public IActionResult EditTherapist(EditTherapistDTO therapist)
        {
            if (therapist == null || string.IsNullOrEmpty(therapist.City) || string.IsNullOrEmpty(therapist.Email) || string.IsNullOrEmpty(therapist.FirstName) ||
                string.IsNullOrEmpty(therapist.LastName) || string.IsNullOrEmpty(therapist.PhoneNumber) || string.IsNullOrEmpty(therapist.Street) ||
                string.IsNullOrEmpty(therapist.Website))
            {
                return(BadRequest());
            }

            if (therapist.PostalCode < 1000 || 9999 < therapist.PostalCode)
            {
                return(BadRequest());                                                           //Belgian postal codes
            }
            if (therapist.HouseNumber < 1 || 999 < therapist.HouseNumber)
            {
                return(BadRequest());                                                         //House numbers
            }
            TherapistType tt = _therapistRepo.GetTherapistType(therapist.TherapistTypeId);

            if (tt == null)
            {
                return(BadRequest());           //Therapist type
            }
            Therapist edited = _therapistRepo.GetById(therapist.TherapistId);

            if (edited == null)
            {
                return(BadRequest());
            }
            edited = Therapist.MapEditTherapistDTOToTherapist(therapist, edited, tt);
            _therapistRepo.EditOpeningsTimes(edited.OpeningTimes.ToList());
            _therapistRepo.UpdateTherapist(edited);
            try
            {
                _therapistRepo.SaveChanges();
            }
            catch (Exception) {
                return(StatusCode(500));
            }
            return(Ok());
        }