public LimitationTypeModel ToModel(tb_limitation_type tbLimitationType) { LimitationTypeModel limitationTypeModel = new LimitationTypeModel(); limitationTypeModel.Id = tbLimitationType.id_limitation_type; limitationTypeModel.Name = tbLimitationType.ds_limitation_type; return limitationTypeModel; }
private tb_limitation_type ToDbModel(LimitationTypeModel limitationType) { tb_limitation_type tbLimitationType = new tb_limitation_type(); tbLimitationType.id_limitation_type = limitationType.Id; tbLimitationType.ds_limitation_type = limitationType.Name; return tbLimitationType; }
public ConfigurationLimitationModel() { LimitationType = new LimitationTypeModel(); }