public MockResponseProvider(List <MockResponse> responses = null) { if (responses != null) { Responses.AddRange(responses); } }
private void LoadGrid() { IList <PaymentSettingsModel> entityList = localSql.GetPaymentMethodsList(); Responses.Clear(); if (!entityList.Any()) { return; } Responses.AddRange(entityList); }
private void LoadGrid() { IList <DocumentType> records = localSql.GetDocumentMappings(); Responses.Clear(); if (!records.Any()) { return; } Responses.AddRange(records); }
private void BindShippingMethods() { StatusUpdate.StatusMessage = Utilities.GetResourceValue("Loading"); Responses.Clear(); IList <ShipmentSettingsModel> records = localSql.GetShipmentMethodsList(SearchModel); if (!records.Any()) { return; } Responses.AddRange(records); StatusUpdate.StatusMessage = Utilities.GetResourceValue("DefaultStatus"); }
public StreamedDataResponse(IEnumerable <Types.Payload> items) { Responses.AddRange(items); }