/// <summary>
        /// AddExtension Constructor
        /// </summary>
        public AddExtension()
        {
            InitializeComponent();

            aevm = new AddExtensionViewModel();
            aevm.CurrentLanguage = comboBox.SelectedItem as string;
        }
Пример #2
0
        public async Task <IActionResult> AddExtension(AddExtensionViewModel model)
        {
            FileExtensionResult result = await _mediatr.Send(new AddExtensionCommand(model.Name));

            return(HandleResult(result, result.FileExtension));
        }