public IActionResult DeleteSpecialty(int id) { try { var res = _repository.DeleteSpecialtyById(id); return(Ok(res)); } catch (Exception error) { return(BadRequest(error)); } }