Пример #1
0
 public IActionResult DeleteTerm(int termId)
 {
     try
     {
         m_termManager.DeleteTerm(termId);
         return(Ok());
     }
     catch (HttpErrorCodeException exception)
     {
         return(StatusCode((int)exception.StatusCode, exception.Message));
     }
 }
Пример #2
0
 public async Task DeleteTerm()
 {
     var termMgr = new TermManager();
     await termMgr.DeleteTerm(this.SelectedTerm.TermID);
 }