public void AcceptContract(string contractId, string clientId, string observation)
        {
            var contract = repository.FindOneContractAceptedById(contractId);

            foreach (ContractDetail d in contract.Details)
            {
                if (d.Customer.Id != clientId)
                {
                    contract.RemoveDetail(d);
                }
                else
                {
                    d.ClientObservation = observation;
                }
            }
            // ContractGenerator generator = ContractGenerator.CreateContract(contract, this.singleProfileName, d.Customer.Profile.ProfileName);
            // generator.Generate();
            // string filePath = generator.PdfFilePath;
            // generator= null;
            repository.AcceptContract(contract);
        }