/// <summary> /// 获得数据列表 /// </summary> public static DataSet GetList(string strWhere) { IRolesAppService service = IocManager.Instance.Resolve <IRolesAppService>(); var accountList = service.GetList(strWhere); if (accountList != null) { List <AccountsRoles> userList = new List <AccountsRoles>(); accountList.ForEach(x => userList.Add(ConvertFromDto(x))); return(userList.ToDataSet <AccountsRoles>()); } else { DataSet ds = new DataSet(); return(ds); } }