public static DataSet GetListByTitle(string title) { IRolesAppService service = IocManager.Instance.Resolve <IRolesAppService>(); var accountList = service.GetListByTitle(title); 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); } }