Beispiel #1
0
        public ConfigureSectionsUpdateModel UpdateConfigueSectionAModel(int id, ConfigueSectionAGetModel configueSectionAGetModel)
        {
            var model = new ConfigureSectionsUpdateModel
            {
                ConfigueSectionAGetModel = configueSectionAGetModel,
                Id = id
            };

            UpdateSelectType(model.ConfigueSectionAGetModel);

            var data = DummayData[id];

            data.LengthA  = configueSectionAGetModel.LengthA;
            data.LengthB  = configueSectionAGetModel.LengthB;
            data.LengthAB = configueSectionAGetModel.LengthAB;
            data.PartType = configueSectionAGetModel.PartType;

            return(model);
        }
Beispiel #2
0
        public ConfigureSectionsUpdateModel GetConfigureSectionsUpdateModel(int id)
        {
            var data  = DummayData[id];
            var model = new ConfigureSectionsUpdateModel
            {
                ConfigueSectionAGetModel = new ConfigueSectionAGetModel
                {
                    LengthA  = data.LengthA,
                    LengthB  = data.LengthB,
                    LengthAB = data.LengthAB,
                    PartType = data.PartType
                },
                Id = id
            };

            UpdateSelectType(model.ConfigueSectionAGetModel);

            return(model);
        }