Поле Duration заменено на DurationSec (в Dto и модели для Operation)

This commit is contained in:
KharchenkoVV 2021-07-22 15:22:33 +05:00
parent 61205fa7c1
commit 016522fbd5
3 changed files with 4 additions and 4 deletions

View File

@ -3,6 +3,6 @@
public class OperationDetailsDto
{
public string OperationName { get; set; }
public int Duration { get; set; }
public int DurationSec { get; set; }
}
}

View File

@ -208,7 +208,7 @@ namespace AsbCloudInfrastructure.Services
Operations = o.Select(opr => new OperationDetailsDto
{
OperationName = opr.OperationName,
Duration = opr.OperationsDuration
DurationSec = opr.OperationsDuration
}).ToList()
})
.OrderBy(ops => ops.IntervalBegin);

View File

@ -19,8 +19,8 @@ namespace AsbCloudInfrastructure.Services
private readonly CacheTable<Well> cacheWells;
public DataService(IAsbCloudDbContext db, ITelemetryService telemetryService,
IAnalyticsService analyticsService, ISaubDataCache saubDataCache,
CacheDb cacheDb, MapperConfiguration mapperConfiguration)
IAnalyticsService analyticsService, CacheDb cacheDb,
MapperConfiguration mapperConfiguration)
{
this.db = db;
this.telemetryService = telemetryService;