Ejemplo n.º 1
0
        private async Task <string> GetSupplierResponseFromDb(Models.Rootobject model, string supplierCode, string key)
        {
            AgencySupplierResponseEntity addSupplierDetails = new AgencySupplierResponseEntity();

            try
            {
                DateTime currentDateTime = DateTime.Now;
                addSupplierDetails.AgencyCode     = model.CommonRequestSearch.AgencyCode;
                addSupplierDetails.SearchDateTime = currentDateTime;
                addSupplierDetails.Key            = key;
                addSupplierDetails.Status         = 1;
                addSupplierDetails.SupplierCode   = supplierCode;
                string response = await supplierAgencyServices.GetAgencySupplierResponse(addSupplierDetails);

                return(response);
            }
            catch (Exception ex)
            {
                return(null);
            }
        }