예제 #1
0
        public async Task OnGetAsync()
        {
            var dto = await _service.GetAsync(Id);

            ViewModel = ObjectMapper.Map <EquipmentSparePartDto, CreateEditEquipmentSparePartViewModel>(dto);
        }
예제 #2
0
        public async Task OnGetAsync()
        {
            var dto = await _service.GetAsync(Id);

            EquipmentSparePart = ObjectMapper.Map <EquipmentSparePartDto, CreateUpdateEquipmentSparePartDto>(dto);
        }