Added available_tools

This commit is contained in:
Lucio Maranta
2018-08-23 12:12:14 +02:00
parent 26b23f1a99
commit 700624968d
4 changed files with 24 additions and 7 deletions
@@ -246,6 +246,15 @@ namespace Step.Database.Controllers
return dtoShanks;
}
public List<DTONcToolModel> GetAvailableTools()
{
List<DTONcToolModel> dtoTools = GetTools()
.Where(x => x.ShankId == null || x.ShankId == 0)
.ToList();
return dtoTools;
}
public DbNcToolModel AddTool(DTONewNcToolModel dtoTool)
{
DbNcToolModel tool = (DbNcToolModel)dtoTool;