Improved maintenances and fix function access
This commit is contained in:
@@ -4,6 +4,7 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using static CMS_CORE_Library.DataStructures;
|
||||
using static Step.Config.ServerConfig;
|
||||
|
||||
namespace Step.Database.Controllers
|
||||
{
|
||||
@@ -31,7 +32,7 @@ namespace Step.Database.Controllers
|
||||
.FirstOrDefault();
|
||||
}
|
||||
|
||||
public List<DTOFunctionAccessModel> GetFunctionAccess(int roleLevel)
|
||||
public List<DTOFunctionAccessModel> GetFunctionsAccess(int roleLevel)
|
||||
{
|
||||
return dbCtx
|
||||
.FunctionsAccess
|
||||
@@ -47,11 +48,16 @@ namespace Step.Database.Controllers
|
||||
.ToList();
|
||||
}
|
||||
|
||||
public List<DTORuntimeFunctionalityModel> GetFunctionsMappedWithPlc(List<FunctionalityModel> functionalityList)
|
||||
public List<FunctionAccessModel> FindAll()
|
||||
{
|
||||
return dbCtx
|
||||
.FunctionsAccess
|
||||
.ToList() // Find all function access
|
||||
.ToList();
|
||||
}
|
||||
|
||||
public List<DTORuntimeFunctionalityModel> GetFunctionsMappedWithPlc(List<FunctionalityModel> functionalityList)
|
||||
{
|
||||
return FunctionsAccessConfig // Find all function access
|
||||
.Select(f => new DTORuntimeFunctionalityModel()
|
||||
{
|
||||
Id = f.FunctionAccessId,
|
||||
|
||||
Reference in New Issue
Block a user