Exemplo n.º 1
0
        public IActionResult Get(string moniker, int id)
        {
            try
            {
                return(Ok(_mapper.Map <TalkViewModel>(_repo.GetTalk(id))));
            }
            catch (Exception ex)
            {
                _logger.LogError("Failed to get individual talk: {0}", ex);
            }

            return(BadRequest("Couldn't load talk."));
        }