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

            ViewModel = ObjectMapper.Map <EquipmentTypeDto, CreateEditEquipmentTypeViewModel>(dto);
        }
        public async Task OnGetAsync()
        {
            var dto = await _service.GetAsync(Id);

            EquipmentType = ObjectMapper.Map <EquipmentTypeDto, CreateUpdateEquipmentTypeDto>(dto);
        }