public IActionResult Get(int id) { var lecturer = _dataStore.GetLecturerById(id); if (lecturer != null) { return(Ok(lecturer)); } else { return(NotFound()); } }
public IActionResult Get(int id) { var lecturer = _dataStore.GetLecturerById(id); if (lecturer != null) { return(Ok(lecturer)); } else { return(NotFound()); } }