Fix nullables in WellboreService

This commit is contained in:
Frolov-Nikita 2024-01-21 13:00:03 +05:00
parent 7f92f19ba6
commit f69bec9687
No known key found for this signature in database
GPG Key ID: 719E3386D12B0760

View File

@ -7,7 +7,6 @@ using AsbCloudApp.Data.SAUB;
using AsbCloudApp.Repositories;
using AsbCloudApp.Requests;
using AsbCloudApp.Services;
using AsbCloudInfrastructure.Services.SAUB;
namespace AsbCloudInfrastructure.Services;
@ -68,10 +67,10 @@ public class WellboreService : IWellboreService
if (dataCache is not null)
{
wellbore.DateStart = dataCache.Value.First.DateTime;
wellbore.DepthStart = dataCache.Value.First.WellDepth!.Value;
wellbore.DepthStart = dataCache.Value.First.WellDepth;
wellbore.DateEnd = dataCache.Value.Last.DateTime;
wellbore.DepthEnd = dataCache.Value.Last.WellDepth!.Value;
wellbore.DepthEnd = dataCache.Value.Last.WellDepth;
}
}
@ -124,7 +123,7 @@ public class WellboreService : IWellboreService
if (dataCache is not null)
{
wellbore.DateEnd = dataCache.Value.Last.DateTime;
wellbore.DepthEnd = dataCache.Value.Last.WellDepth!.Value;
wellbore.DepthEnd = dataCache.Value.Last.WellDepth;
}
}
}