public async Task OnGetAsync() { var dto = await _service.GetAsync(Id); ViewModel = ObjectMapper.Map <EquipmentSparePartDto, CreateEditEquipmentSparePartViewModel>(dto); }
public async Task OnGetAsync() { var dto = await _service.GetAsync(Id); EquipmentSparePart = ObjectMapper.Map <EquipmentSparePartDto, CreateUpdateEquipmentSparePartDto>(dto); }