/// <summary> /// 插入评论 /// </summary> /// <param name="Newcomment"></param> /// <param name="OwnerId"></param> /// <returns>序列号</returns> public static string InsertComment(Comment NewComment, string OwnerId) { return(OwnerTableOperator.InsertRec(NewComment, OwnerId)); }
/// <summary> /// 删除评论 /// </summary> /// <param name="DropComment"></param> public static void DropComment(Comment DropComment) { MongoDbRepository.DeleteRec(DropComment); }
/// <summary> /// 修改评论 /// </summary> /// <param name="OldComment"></param> public static void UpdateComment(Comment OldComment) { MongoDbRepository.UpdateRec(OldComment); }