public ResponseResult<List<Role>> GetRoleAll() { var result = ResponseResult<List<Role>>.Default(); try { var wfService = new WorkflowService(); var entity = wfService.GetRoleAll().ToList(); result = ResponseResult<List<Role>>.Success(entity); } catch (System.Exception ex) { result = ResponseResult<List<Role>>.Error( string.Format("获取角色数据失败!{0}", ex.Message) ); } return result; }