Config reorganization
General refactor
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
using System;
|
||||
using Step.Model.DatabaseModels;
|
||||
using Step.Model.DTOModels;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Step.Model.DatabaseModels;
|
||||
using Step.Model.DTOModels;
|
||||
using static CMS_CORE_Library.DataStructures;
|
||||
|
||||
namespace Step.Database.Controllers
|
||||
@@ -47,12 +47,12 @@ namespace Step.Database.Controllers
|
||||
.ToList();
|
||||
}
|
||||
|
||||
public List<DTORuntimeFunctionAccessModel> GetFunctionsMappedWithPlc(List<FunctionalityModel> functionalityList)
|
||||
public List<DTORuntimeFunctionalityModel> GetFunctionsMappedWithPlc(List<FunctionalityModel> functionalityList)
|
||||
{
|
||||
return dbCtx
|
||||
.FunctionsAccess
|
||||
.ToList() // Find all function access
|
||||
.Select(f => new DTORuntimeFunctionAccessModel()
|
||||
.Select(f => new DTORuntimeFunctionalityModel()
|
||||
{
|
||||
Id = f.FunctionAccessId,
|
||||
Name = f.Name,
|
||||
@@ -71,4 +71,4 @@ namespace Step.Database.Controllers
|
||||
return functionalityList[id - 1].IsActive;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user