api v2.0
This commit is contained in:
@@ -12,7 +12,7 @@ public class BasePostgreSQLRepository<T> where T : class
|
||||
_context = context;
|
||||
}
|
||||
|
||||
public async Task<T> GetByIdAsync(Guid id)
|
||||
public async Task<T?> GetByIdAsync(Guid id)
|
||||
{
|
||||
return await _context.Set<T>().FindAsync(id);
|
||||
}
|
||||
@@ -40,4 +40,4 @@ public class BasePostgreSQLRepository<T> where T : class
|
||||
_context.Set<T>().Remove(entity);
|
||||
await _context.SaveChangesAsync();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user