/// <summary> /// AddExtension Constructor /// </summary> public AddExtension() { InitializeComponent(); aevm = new AddExtensionViewModel(); aevm.CurrentLanguage = comboBox.SelectedItem as string; }
public async Task <IActionResult> AddExtension(AddExtensionViewModel model) { FileExtensionResult result = await _mediatr.Send(new AddExtensionCommand(model.Name)); return(HandleResult(result, result.FileExtension)); }