private async Task DeleteLabelObjectAsync(LabelObjectDto input) { var id = (objectMapper.Map <LabelObject>(input)).Id; await LabelObjectServices.DeleteLabelObject(id); await GetLabelObjectsAsync(); }
private void OpenEditLabelObjectModal(LabelObjectDto input) { var id = (objectMapper.Map <LabelObject>(input)).Id; EditingLabelObjectId = id; EditingLabelObject = objectMapper.Map <LabelObjectDto, LabelObjectUpdateDto>(input); EditingLabelObjectValidations.ClearAll(); EditLabelObjectModal.Show(); }