public IActionResult GetAcademicTitles() { try { var res = _repository.GetAcademicTitles(); return(Ok(res)); } catch (Exception error) { return(BadRequest(error)); } }