public async Task <ActionResult> DeleteCommission(int id) { var commission = await _comService.GetCommissionById(id); if (commission == null) { return(NotFound()); } await _comService.DeleteCommission(commission); return(Ok()); }