diff --git a/AsbCloudApp/Services/IRepositoryWellRelated.cs b/AsbCloudApp/Services/IRepositoryWellRelated.cs index f608fd04..112cff89 100644 --- a/AsbCloudApp/Services/IRepositoryWellRelated.cs +++ b/AsbCloudApp/Services/IRepositoryWellRelated.cs @@ -20,7 +20,7 @@ namespace AsbCloudApp.Services /// id скважины /// /// emptyList if nothing found - Task?> GetByIdWellAsync(int idWell, CancellationToken token); + Task> GetByIdWellAsync(int idWell, CancellationToken token); /// /// Получение всех записей по нескольким скважинам @@ -28,7 +28,7 @@ namespace AsbCloudApp.Services /// id скважин /// /// emptyList if nothing found - Task?> GetByIdWellAsync(IEnumerable idsWells, CancellationToken token); + Task> GetByIdWellAsync(IEnumerable idsWells, CancellationToken token); } #nullable disable } \ No newline at end of file diff --git a/AsbCloudInfrastructure/Repository/CrudWellRelatedCacheRepositoryBase.cs b/AsbCloudInfrastructure/Repository/CrudWellRelatedCacheRepositoryBase.cs index c392426f..1646cb51 100644 --- a/AsbCloudInfrastructure/Repository/CrudWellRelatedCacheRepositoryBase.cs +++ b/AsbCloudInfrastructure/Repository/CrudWellRelatedCacheRepositoryBase.cs @@ -21,7 +21,7 @@ namespace AsbCloudInfrastructure.Repository public CrudWellRelatedCacheRepositoryBase(IAsbCloudDbContext context, IMemoryCache memoryCache, Func, IQueryable> makeQuery) : base(context, memoryCache, makeQuery) { } - public async Task?> GetByIdWellAsync(int idWell, CancellationToken token) + public async Task> GetByIdWellAsync(int idWell, CancellationToken token) { var cache = await GetCacheAsync(token); @@ -32,7 +32,7 @@ namespace AsbCloudInfrastructure.Repository return dtos; } - public async Task?> GetByIdWellAsync(IEnumerable idsWells, CancellationToken token) + public async Task> GetByIdWellAsync(IEnumerable idsWells, CancellationToken token) { if (!idsWells.Any()) return Enumerable.Empty(); diff --git a/AsbCloudInfrastructure/Repository/CrudWellRelatedRepositoryBase.cs b/AsbCloudInfrastructure/Repository/CrudWellRelatedRepositoryBase.cs index 982d49e1..fa88b576 100644 --- a/AsbCloudInfrastructure/Repository/CrudWellRelatedRepositoryBase.cs +++ b/AsbCloudInfrastructure/Repository/CrudWellRelatedRepositoryBase.cs @@ -20,7 +20,7 @@ namespace AsbCloudInfrastructure.Repository public CrudWellRelatedRepositoryBase(IAsbCloudDbContext context, Func, IQueryable> makeQuery) : base(context, makeQuery) { } - public async Task?> GetByIdWellAsync(int idWell, CancellationToken token) + public async Task> GetByIdWellAsync(int idWell, CancellationToken token) { var entities = await GetQuery() .Where(e => e.IdWell == idWell) @@ -29,7 +29,7 @@ namespace AsbCloudInfrastructure.Repository return dtos; } - public async Task?> GetByIdWellAsync(IEnumerable idsWells, CancellationToken token) + public async Task> GetByIdWellAsync(IEnumerable idsWells, CancellationToken token) { if (!idsWells.Any()) return Enumerable.Empty();