| | |
| | | |
| | | var maxSort = await _wmsstoreRepository.GetMaxSortAsync(); |
| | | var sort = input.Sort ?? maxSort; |
| | | var wmsstore = new WmsStore |
| | | { |
| | | |
| | | }; |
| | | var wmsstore = ObjectMapper.Map<WmsStoreCreateDto,WmsStore>(input); |
| | | wmsstore.Sort = sort; |
| | | input.MapExtraPropertiesTo(wmsstore, MappingPropertyDefinitionChecks.None); |
| | | |
| | | await _wmsstoreRepository.InsertAsync(wmsstore); |
| | |
| | | wmsstore.SetConcurrencyStampIfNotNull(input.ConcurrencyStamp); |
| | | input.MapExtraPropertiesTo(wmsstore, MappingPropertyDefinitionChecks.None); |
| | | |
| | | wmsstore.StoreCode = input.StoreCode; |
| | | wmsstore.StoreName = input.StoreName; |
| | | wmsstore.Remark = input.Remark; |
| | | |
| | | await _wmsstoreRepository.UpdateAsync(wmsstore); |
| | | |