Fix saving of beam shear calculator input data

This commit is contained in:
ear
2025-09-01 18:16:25 +05:00
parent 5e45be35b1
commit 98c94dc232
6 changed files with 1434 additions and 7 deletions

View File

@@ -1,4 +1,5 @@
using DataAccess.DTOs.Converters.BeamShears;
using StructureHelperCommon.Infrastructures.Exceptions;
using StructureHelperCommon.Infrastructures.Interfaces;
using StructureHelperLogics.Models.BeamShears;
@@ -24,7 +25,14 @@ namespace DataAccess.DTOs
actionUpdateStrategy.Update(NewItem, source);
sectionUpdateStrategy.Update(NewItem, source);
stirrupUpdateStrategy.Update(NewItem, source);
if (source.DesignRangeProperty is BeamShearDesignRangePropertyDTO propertyDTO)
{
NewItem.DesignRangeProperty = designRangeConvertStrategy.Convert(propertyDTO);
}
else
{
throw new StructureHelperException(ErrorStrings.ObjectTypeIsUnknownObj(source.DesignRangeProperty));
}
return NewItem;
}