private void ButtonSave_OnClick(object sender, RoutedEventArgs e)
 {
     var newBonus = Convert.ToInt32(TextBoxBonusQuantity.Text);
     var newBonusPercent = Convert.ToInt32(TextBoxBonusPercent.Text);
     ApiClient.PutRequest<ResponseModel, ChangeBonusDto>("/api/Patient/ChangeBonus/", 
         new ChangeBonusDto(_patientViewModel.Id, newBonus, newBonusPercent));
     
     _hostWindow.ClearContent();
 }
        private void ButtonDoctorDelete_OnClick(object sender, RoutedEventArgs e)
        {
            var doctorId = _doctorViewModel.Id;

            ApiClient.DelRequest <ResponseModel>("/api/doctor/deleteDoctor/" + doctorId);

            // TODO использовать event
            ((ControlDoctorService)_hostWindow).UpdateDoctorsList();
            _hostWindow.ClearContent();
        }
 private void Close()
 {
     _hostWindow.ClearContent();
 }