public async Task OnGetAsync() { var dto = await _service.GetAsync(Id); ViewModel = ObjectMapper.Map <EquipmentStatusDto, CreateEditEquipmentStatusViewModel>(dto); }
public async Task OnGetAsync() { var dto = await _service.GetAsync(Id); EquipmentStatus = ObjectMapper.Map <EquipmentStatusDto, CreateUpdateEquipmentStatusDto>(dto); }