public IActionResult DeleteTerm(int termId) { try { m_termManager.DeleteTerm(termId); return(Ok()); } catch (HttpErrorCodeException exception) { return(StatusCode((int)exception.StatusCode, exception.Message)); } }
public async Task DeleteTerm() { var termMgr = new TermManager(); await termMgr.DeleteTerm(this.SelectedTerm.TermID); }