WIP Assisted tooling
Fix sofkeys
This commit is contained in:
@@ -146,6 +146,16 @@ namespace Step.Database.Controllers
|
||||
.ToList();
|
||||
}
|
||||
|
||||
public DbNcShankModel FindShankByToolId(int toolId)
|
||||
{
|
||||
return dbCtx
|
||||
.Tools
|
||||
.Include("Shank")
|
||||
.Where(x => x.ToolId == toolId && x.ShankId != null)
|
||||
.Select(x => x.Shank)
|
||||
.FirstOrDefault();
|
||||
}
|
||||
|
||||
public List<DTONcShankModel> GetShanks()
|
||||
{
|
||||
// Get shank from database
|
||||
|
||||
Reference in New Issue
Block a user