public bool SetPostCategories(string postid, string username, string password,
MtCategory[] categories)
{
ValidateUser(username,password,Config.CurrentBlog.AllowServiceAccess);
if (categories != null && categories.Length > 0)
{
int postID = Int32.Parse(postid);
ArrayList al = new ArrayList();
for (int i = 0; i < categories.Length; i++)
{
al.Add(Int32.Parse(categories[i].categoryId));
}
if(al.Count > 0)
{
Entries.SetEntryCategoryList(postID,(int[])al.ToArray(typeof(int)));
}
}
return true;
}