WIP Assisted tooling

Fix sofkeys
This commit is contained in:
Lucio Maranta
2019-03-13 16:31:31 +01:00
parent 0da197ebf6
commit f635419c30
8 changed files with 110 additions and 14 deletions
@@ -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