public async Task <IActionResult> OnPostAsync() { var dto = ObjectMapper.Map <CreateEditEquipmentInspectionResultViewModel, CreateUpdateEquipmentInspectionResultDto>(ViewModel); await _service.UpdateAsync(Id, dto); return(NoContent()); }
public async Task <IActionResult> OnPostAsync() { await _service.UpdateAsync(Id, EquipmentInspectionResult); return(NoContent()); }