示例#1
0
        public IEnumerable <ContactPerson> GetCounterpartyContactPersonsByCounterpartyRef(Guid?counterPartyRef)
        {
            var contacts = _jsonLogic.GetListOfObjects <ContactPerson>("Counterparty",
                                                                       "getCounterpartyContactPersons",
                                                                       new
            {
                Ref = counterPartyRef.ToString()
            });

            return(contacts.data);
        }
示例#2
0
        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);
        }
示例#3
0
 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;
     }
 }
示例#4
0
 public IEnumerable <City> GetAllCities()
 {
     return(_jsonLogic.GetListOfObjects <City>("Address", "getCities", new { }).data);
 }
示例#5
0
 public IEnumerable <T> GetDictionary <T>(string dictionary, dynamic param = null)
 {
     return(_jsonLogic.GetListOfObjects <T>("Common", "get" + dictionary, param).data);
 }
示例#6
0
 public IEnumerable <Warehouse> GetWarehousesByCity(Guid cityRef)
 {
     return(_jsonLogic.GetListOfObjects <Warehouse>("AddressGeneral", "getWarehouses",
                                                    new { CityRef = cityRef }).data);
 }