private void DeleteConfig(object obj) { if (SelectedConfig.KeyBinding != null) { UnregisterHotKey(_windowHandle, KeyInterop.VirtualKeyFromKey(SelectedConfig.KeyBinding.Key)); } if (_configService.DeleteConfig(SelectedConfig)) { Configs.RemoveAt(SelectedConfigIndex); SelectedConfigIndex = 0; } }
public async Task <NetResult <CoroResult> > DeleteConfig(string id) { try { var config = _config.Get(id); if (config == null) { return(null); } await _project.DeleteService(config.ProjectId, config.Id, Entity.Enum.Services.Config); await _config.DeleteConfig(config); return(new CoroResult() { Success = true }); } catch (Exception ext) { return(ext); } }
public ResultModel <string> DeleteConfig(DelParameterRQ rq) { return(_service.DeleteConfig(rq)); }
public IActionResult Delete(int id) { _service.DeleteConfig(id); return(RedirectToAction("Index", new { messageType = 1, message = "Configuration Deleted Successfully." })); }
public BasicResponse DeleteConfig(ConfigDeleteRequest configrequest) { return(_configService.DeleteConfig(configrequest)); }