public void DeleteBlogLinks(int blogId, IEnumerable <int> ids)
        {
            var friends = FriendBiz.Read(f => f.BlogId == blogId && ids.Contains(f.Id));

            friends.ForEach(f => FriendBiz.Remove(f));
            UnitOfWork.SaveChanges();
        }
 public DataSourceResult ReadBlogLinks(int blogId, DataSourceRequest request)
 {
     return(FriendBiz.Read(friend => friend.BlogId == blogId)
            .MapTo <BlogLinkPM>()
            .ToDataSourceResult(request));
 }