This commit is contained in:
mmrbnjd
2025-07-26 16:52:59 +03:30
parent 258df5b360
commit 71f06b8ee8
7 changed files with 52 additions and 31 deletions

View File

@@ -24,7 +24,7 @@ namespace Hushian.Persistence.Repositories
try
{
await _context.AddAsync(entity);
if ((await _context.SaveChangesAsync() == 1))
if ((await _context.SaveChangesAsync() >= 1))
return entity;
return null;