public Models.ContractTransaction UpdateProfile(string citizenIdentifier, Models.DocProof proofDoc) { Mapper.Reset(); Mapper.Initialize(cfg => cfg.CreateMap <Models.DocProof, Messages.DocProof>()); Messages.DocProof _docProof = new Messages.DocProof { Container = proofDoc.Container, ContentType = "image/known", FileName = proofDoc.FileName, Hash = proofDoc.Hash, StorageSharding = proofDoc.StorageSharding }; var reply = client.updateProfileProofDocument(new Messages.UpdateProfileProofDocument { CitizenIdentifier = citizenIdentifier, DocProof = _docProof }); var profile = ServiceProfileToModelProfile(reply); return(prepareTxObject(profile.CitizenIdentifier, profile)); }
public ActionResult <ContractTransaction> UpdateProfile(string citizenIdentifier, Healthcare.BC.Offchain.Repository.Models.DocProof docProof) { var transaction = _client.UpdateProfile(citizenIdentifier, docProof); return(transaction); }