forked from ddrilling/AsbCloudServer
Refactor WellService.GetAsync()
This commit is contained in:
parent
8b54966876
commit
395d164c92
@ -96,12 +96,12 @@ namespace AsbCloudInfrastructure.Services
|
||||
.ThenInclude(c => c.Deposit)
|
||||
.FirstOrDefaultAsync(w => w.Id == idWell, token)
|
||||
.ConfigureAwait(false);
|
||||
|
||||
|
||||
if (entity is null)
|
||||
return null;
|
||||
|
||||
var dto = entity.Adapt<WellDto>();
|
||||
|
||||
if (dto is null)
|
||||
return dto;
|
||||
|
||||
dto.Cluster = entity.Cluster?.Caption;
|
||||
dto.Deposit = entity.Cluster?.Deposit?.Caption;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user