public async Task <Profile> Update(Profile profile) { var updatedProfile = _profileAccess.Update <Profile>("ProfileId", profile.ProfileId, profile, new List <string> { "isPrincipal", "Presentation", "PastPro", "WhyMe", "Advantage", "Price" }); if (profile.Cv != null) { updatedProfile.Cv = _documentAccess.Update <Document>("DocumentId", profile.DocumentId_CV, profile.Cv, new List <string> { "Title", "Created", "DocumentBase64", "Type" }); } if (profile.Photo != null) { updatedProfile.Photo = _documentAccess.Update <Document>("DocumentId", profile.DocumentId_Photo, profile.Photo, new List <string> { "Title", "Created", "DocumentBase64", "Type" }); } return(updatedProfile); }
public void setProfile(Profile profile) { this.profile = profile; ProfileAccess db = new ProfileAccess(); db.Update(profile); }