private void AddSearchDetails(Models.Rootobject model, string response, string supplierCode, string key) { List <AgencySupplierResponseEntity> addSupplierDetails = new List <AgencySupplierResponseEntity>(); try { // DateTime depDate = DateTime.ParseExact(_.DepartureDate, "dd-MM-yyyy", System.Globalization.CultureInfo.InvariantCulture); DateTime currentDateTime = DateTime.Now; addSupplierDetails.Add(new AgencySupplierResponseEntity() { AgencyCode = model.CommonRequestSearch.AgencyCode, SearchDateTime = currentDateTime, Key = key, Search = response, Status = 1, SupplierCode = supplierCode, }); supplierAgencyServices.AddSupplierResponse(addSupplierDetails); } catch (Exception ex) { throw; } }