public IEnumerable <ContactPerson> GetCounterpartyContactPersonsByCounterpartyRef(Guid?counterPartyRef) { var contacts = _jsonLogic.GetListOfObjects <ContactPerson>("Counterparty", "getCounterpartyContactPersons", new { Ref = counterPartyRef.ToString() }); return(contacts.data); }
public IEnumerable <Document> GetStatusDocuments(IEnumerable <Document> documents) { var docs = new { Documents = documents.Select(x => new { DocumentNumber = x.IntDocNumber, Phone = x.RecipientsPhone }).ToList() }; var result = _jsonLogic.GetListOfObjects <Document>("TrackingDocument", "getStatusDocuments", docs).data; return(result); }
public RootObject <T> GetListOfObjects <T>(string modelName, string calledMethod, dynamic methodProperties) { try { return(_jsonLogic.GetListOfObjects <T>(modelName, calledMethod, methodProperties)); } catch (Exception e) { Logger.Error(e); throw; } }
public IEnumerable <City> GetAllCities() { return(_jsonLogic.GetListOfObjects <City>("Address", "getCities", new { }).data); }
public IEnumerable <T> GetDictionary <T>(string dictionary, dynamic param = null) { return(_jsonLogic.GetListOfObjects <T>("Common", "get" + dictionary, param).data); }
public IEnumerable <Warehouse> GetWarehousesByCity(Guid cityRef) { return(_jsonLogic.GetListOfObjects <Warehouse>("AddressGeneral", "getWarehouses", new { CityRef = cityRef }).data); }