示例#1
0
 public void DeleteConfirmed(int id)
 {
     dbComments.Delete(id, User.Identity.Name);
 }
示例#2
0
        public async Task <IActionResult> Delete(int id)
        {
            await CommentBusiness.Delete(id, User.Account());

            return(NoContent());
        }
示例#3
0
 /// <summary>
 /// 删除评论
 /// </summary>
 /// <param name="ID">评论ID</param>
 /// <returns>删除是否成功</returns>
 public bool DeleteComment(int ID)
 {
     return(business.Delete(ID));
 }