Esempio n. 1
0
        public IHttpActionResult GetSpeaker(string userName)
        {
            var speaker = _speakerService.GetSpeakerByUserName(userName);

            if (speaker == null)
            {
                return(NotFound());
            }
            else
            {
                return(Ok(CreateRepresentation(speaker)));
            }
        }