private void SetMembersAndCommission(ICommissionService commissionService) { var members = commissionService.GetMembersOfCommission(_commissionId); _commission = commissionService.GetCommissionById(_commissionId); lbxMembers.DataSource = members; }
public async Task <ActionResult> DeleteCommission(int id) { var commission = await _comService.GetCommissionById(id); if (commission == null) { return(NotFound()); } await _comService.DeleteCommission(commission); return(Ok()); }