private void butonCircular1_Click(object sender, EventArgs e)
        {
            decimal number;

            number = decimal.Parse(editSpeakerRatingTextBox.Text);

            if (errorProviderEditSpeakerName.GetError(editSpeakerNameTextBox) == "" &&
                errorProviderEditSpeakerPicture.GetError(editSpeakerPictureTextBox) == "" &&
                errorProviderEditSpeakerNationality.GetError(editSpeakerNationalityTextBox) == "" &&
                errorProviderEditSpeakerCode.GetError(editSpeakerCodeTextBox) == "" &&
                errorProviderEditSpeakerRating.GetError(editSpeakerRatingTextBox) == ""
                )
            {
                PostUpdateSpeaker();
                _getSpeakerRepository.editSpeaker(AddConferance.editedSpeaker.Id, editSpeakerCodeTextBox.Text, editSpeakerNameTextBox.Text, number, editSpeakerNationalityTextBox.Text, editSpeakerPictureTextBox.Text);
                this.Close();
            }
        }
 public IActionResult UpdateSpeaker([FromBody] SpeakerModel speaker)
 {
     _getSpeakerRepository.editSpeaker(speaker.Id, speaker.Code, speaker.Name, speaker.Rating, speaker.Nationality, speaker.Picture);
     return(Ok());
 }