//[Route("profession/{id:int}")] public object Delete(int id) { try { return(_supervisor.DeleteProfession(id)); } catch (Exception ex) { _logger.LogError(ex, "Exception: "); return(StatusCode(500, ex)); } }