public UserBookmarkWrapper(UserBookmark userBookmark)
 {
     BookmarkId = userBookmark.BookmarkID;
     CreatedBy = EmployeeWraper.Get(Core.CoreContext.UserManager.GetUsers(userBookmark.UserID));
     Created = (ApiDateTime) userBookmark.DateAdded;
     Title = userBookmark.Name;
     Description = userBookmark.Description;
 }
		public string GetBookmarkRaiting(Bookmark b, UserBookmark ub, string divID, string singleBookmarkDivID)
		{			
			StringBuilder sb = new StringBuilder();
			using (StringWriter sw = new StringWriter(sb))
			{
				using (HtmlTextWriter textWriter = new HtmlTextWriter(sw))
				{
					using (var c = LoadControl(BookmarkUserControlPath.BookmarkRaitingUserControlPath) as BookmarkRaitingUserControl)
					{
						c.Bookmark = b;
						c.UserBookmark = ub;
						c.DivId = divID;
						c.SingleBookmarkDivID = singleBookmarkDivID;
						c.RenderControl(textWriter);
					}
				}
			}
			return sb.ToString();
		}
 public static bool PermissionCheckRemoveFromFavourite(UserBookmark b)
 {
     return CommunitySecurity.CheckPermissions(new BookmarkPermissionSecurityObject(b.UserID), BookmarkingBusinessConstants.BookmarkRemoveFromFavouriteAction);
 }