Mono Support writing dynamically on the site wall (Closed)

Viewed 34760 time(s), 5 post(s), 3/26/2012 7:39:16 AM - by inanc
3/26/2012 7:39:16 AM
469 Reputation 60 Total posts

Hello,
Could you give a snippet that describing how to write on the site wall dynamically?
Regards
Inanc

1
3/26/2012 9:30:26 AM
7207 Reputation 956 Total posts

Dynamically? You mean that you want to enter some wall notes from your code, or...?

2
3/26/2012 10:15:05 AM
469 Reputation 60 Total posts

Yes exactly.Please..Thank you

3
3/26/2012 4:40:00 PM
7207 Reputation 956 Total posts

using MonoSoftware.MonoX.Repositories;
using MonoSoftware.MonoX.Utilities;
using MonSoftware.Core;
...
NoteRepository repository = NoteRepository.GetInstance();
SnNoteEntity note = new SnNoteEntity(GuidExtension.NewSequentialGuid());
note.ApplicationId = MembershipRepository.GetInstance().GetApplicationId();
note.LanguageId = LocalizationUtility.GetCurrentLanguageId();
note.UserId = SecurityUtility.GetUserId();
note.DateCreated = DateTime.Now;
note.NoteContent = "This is some sample text";
repository.SaveEntity(note);

4
4/10/2012 6:51:12 AM
469 Reputation 60 Total posts

Hello Denis,
This works very well! Thank you very much.
Regards
Inanc

5
This is a demo site for MonoX. Please visit Mono Software for more info.