Пример #1
0
        private async Task DeleteLabelObjectAsync(LabelObjectDto input)
        {
            var id = (objectMapper.Map <LabelObject>(input)).Id;
            await LabelObjectServices.DeleteLabelObject(id);

            await GetLabelObjectsAsync();
        }
Пример #2
0
        private void OpenEditLabelObjectModal(LabelObjectDto input)
        {
            var id = (objectMapper.Map <LabelObject>(input)).Id;

            EditingLabelObjectId = id;
            EditingLabelObject   = objectMapper.Map <LabelObjectDto, LabelObjectUpdateDto>(input);
            EditingLabelObjectValidations.ClearAll();
            EditLabelObjectModal.Show();
        }