public void DeleteConfirmed(int id) { dbComments.Delete(id, User.Identity.Name); }
public async Task <IActionResult> Delete(int id) { await CommentBusiness.Delete(id, User.Account()); return(NoContent()); }
/// <summary> /// 删除评论 /// </summary> /// <param name="ID">评论ID</param> /// <returns>删除是否成功</returns> public bool DeleteComment(int ID) { return(business.Delete(ID)); }