Exemple #1
0
 public MainSpeakerDetails(IConferenceRepository ConferenceRepository, IGetSpeakerDetail GetSpeakerDetail, string SpeakerName)
 {
     InitializeComponent();
     _ConferenceRepository     = ConferenceRepository;
     _GetSpeakerDetail         = GetSpeakerDetail;
     pictureBox1.ImageLocation = Base64Decode(_GetSpeakerDetail.GetSpeakerImage(SpeakerName));
     pictureBox1.SizeMode      = PictureBoxSizeMode.StretchImage;
     pictureBox1.Refresh();
     speakerName = SpeakerName;
 }
        public IActionResult GetSpeakerImage(string name)
        {
            var result = _speakerrepository.GetSpeakerImage(name);

            return(Ok(result));
        }