...
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user