public async Task OnGetAsync() { var dto = await _service.GetAsync(Id); ViewModel = ObjectMapper.Map <EquipmentSparePartTypeDto, CreateEditEquipmentSparePartTypeViewModel>(dto); }
public async Task OnGetAsync() { var dto = await _service.GetAsync(Id); EquipmentSparePartType = ObjectMapper.Map <EquipmentSparePartTypeDto, CreateUpdateEquipmentSparePartTypeDto>(dto); }