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