public DefaultProfileContentWriter(ProfilesWriter profilesWriter, int profileId, string userName)
 {
     this.profilesWriter = profilesWriter;
     this.profileId = profileId;
     this.userName = userName;
 }
 public static ProfilesWriter GetProfilesWriter()
 {
     ProfilesWriter service = new ProfilesWriter(GetSessionFactory());
     service.OpenSession();
     return service;
 }