optimize
wet 2 years ago
parent a3d89d6dcf
commit 0299b88912

@ -278,7 +278,7 @@ namespace Myshipping.Application
{ {
entity.CARRIERID = _cache.GetAllCodeCarrier().Result.Where(x => x.CnName == item.CARRIER).Select(x => x.Code).FirstOrDefault(); entity.CARRIERID = _cache.GetAllCodeCarrier().Result.Where(x => x.CnName == item.CARRIER).Select(x => x.Code).FirstOrDefault();
if (!string.IsNullOrEmpty(entity.CARRIERID)) if (string.IsNullOrEmpty(entity.CARRIERID))
{ {
entity.CARRIERID = mapcarrier.Where(x => x.MapName == item.CARRIER).Select(x => x.Code).FirstOrDefault(); entity.CARRIERID = mapcarrier.Where(x => x.MapName == item.CARRIER).Select(x => x.Code).FirstOrDefault();

Loading…
Cancel
Save