Fix tool update

This commit is contained in:
Lucio Maranta
2018-07-05 17:35:34 +02:00
parent 10ba0176c3
commit 28e65cbdda
3 changed files with 24 additions and 18 deletions
@@ -30,7 +30,7 @@ namespace Step.Model.DTOModels.ToolModels
return new DTONcTool()
{
FamilyId = obj.FamilyId,
ShankId = obj.ShankId.Value,
ShankId = obj.ShankId == null ? 0 : obj.ShankId.Value,
Type = obj.Type,
OffsetLength = obj.OffsetLength,
ResidualLife = obj.ResidualLife,
@@ -68,7 +68,7 @@ namespace Step.Model.DTOModels.ToolModels
{
Id = obj.ToolId,
FamilyId = obj.FamilyId,
ShankId = obj.ShankId.Value,
ShankId = obj.ShankId == null ? 0 : obj.ShankId.Value,
Type = obj.Type,
OffsetLength = obj.OffsetLength,
ResidualLife = obj.ResidualLife,
@@ -104,7 +104,7 @@ namespace Step.Model.DTOModels.ToolModels
return new DTONewNcToolModel()
{
FamilyId = obj.FamilyId,
ShankId = obj.ShankId.Value,
ShankId = obj.ShankId == null ? 0 : obj.ShankId.Value,
Type = obj.Type,
OffsetLength = obj.OffsetLength,
ResidualLife = obj.ResidualLife,