public IActionResult GetById(string id) { var item = _speakerRepository.GetById(new ObjectId(id)); if (item == null) { return(HttpNotFound()); } return(new ObjectResult(item)); }
public Speakers GetById(int id) { var getById = speakerRepository.GetById(id); return(getById); }