Added block on tool cancellation when is mounted in magazine
& Fixes
This commit is contained in:
@@ -62,7 +62,16 @@ namespace Step.Database.Controllers
|
||||
.FirstOrDefault();
|
||||
}
|
||||
|
||||
public DbNcShankModel FindShankWithTools(int shankId)
|
||||
public DbNcToolModel FindToolWithDependencies(int toolId)
|
||||
{
|
||||
return dbCtx.Tools
|
||||
.Where(x => x.ToolId == toolId)
|
||||
.Include("Family")
|
||||
.Include("Shank")
|
||||
.FirstOrDefault();
|
||||
}
|
||||
|
||||
public DbNcShankModel FindShankWithTools(int shankId)
|
||||
{
|
||||
return dbCtx.Shanks
|
||||
.Include("Tools")
|
||||
|
||||
Reference in New Issue
Block a user