public async Task <bool> CheckNameExistbyType(string name, string agentId, int typeId = 0) { var result = await _committeeQueries.GetByNameandTypeId(name, agentId, typeId); if (result) { throw new BusinessRuleException(Resources.CommitteeResources.ErrorMessages.CommitteeNameExist); } return(result); }