public List <Domain.RelationShip> Query(Func <QueryDescriptor <Domain.RelationShip>, QueryDescriptor <Domain.RelationShip> > container) { QueryDescriptor <Domain.RelationShip> q = container(QueryDescriptorBuilder.Build <Domain.RelationShip>()); var datas = _relationShipRepository.Query(q)?.ToList(); //WrapLocalizedLabel(datas); return(datas); }
public bool DeleteById(params Guid[] id) { Guard.NotEmpty(id, nameof(id)); var result = false; var deleteds = _relationShipRepository.Query(x => x.RelationshipId.In(id)); if (deleteds.NotEmpty()) { result = DeleteCore(deleteds.ToArray()); } return(result); }