public void Store(ListNamesResponse response) { if (response.Results.Length == 0) { return; } _response = response; }
public ListNamesResponse GetListName() { ListNamesResponse response = new ListNamesResponse() { ListNames = new List <string>() }; string[] array = Directory.GetFiles(Directory.GetCurrentDirectory(), "*.xml"); foreach (var item in array) { string value = item.Substring(item.LastIndexOf("\\")).Replace("\\", string.Empty); value = value.Substring(0, value.IndexOf('.')); response.ListNames.Add(value); } return(response); }