This commit is contained in:
andrei-mihnea-cerbu
2024-04-08 00:03:24 +03:00
parent 2ccec617a5
commit b48d5ee19e
168 changed files with 2877 additions and 1146 deletions
@@ -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();
}
}
}