This commit is contained in:
@@ -435,9 +435,9 @@ namespace AyaNova.Biz
|
||||
|
||||
foreach (JObject j in importData.Data)
|
||||
{
|
||||
long? existingId = await ct.Customer.AsNoTracking().Where(z => z.Name == (string)j["Name"]).Select(x => x.Id).FirstOrDefaultAsync();
|
||||
long existingId = await ct.Customer.AsNoTracking().Where(z => z.Name == (string)j["Name"]).Select(x => x.Id).FirstOrDefaultAsync();
|
||||
|
||||
if (existingId == null)
|
||||
if (existingId == 0)
|
||||
{
|
||||
if (importData.DoImport)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user