public IActionResult GetById(string id)
        {
            var item = _speakerRepository.GetById(new ObjectId(id));

            if (item == null)
            {
                return(HttpNotFound());
            }

            return(new ObjectResult(item));
        }
예제 #2
0
        public Speakers GetById(int id)
        {
            var getById = speakerRepository.GetById(id);

            return(getById);
        }