Added block on tool cancellation when is mounted in magazine

& Fixes
This commit is contained in:
Lucio Maranta
2019-04-03 17:14:28 +02:00
parent 66439f87d4
commit d35273d3e5
8 changed files with 227 additions and 171 deletions
@@ -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")