public IHttpActionResult Remove(int Id) { RemoveComment Model = new RemoveComment { Id = Id, UserId = UserInfo.Id }; ApiResult <bool> rs = CommentDAL.Delete(Model); return(!rs.Succeeded ? Content(HttpStatusCode.BadRequest, rs) : (IHttpActionResult)Ok(rs)); }
public JsonResult DeleteComment(Guid id) { ProductComment pComment = CommentDAL.Get(x => x.ProductCommentID == id); //foreach (var item in pComment.Product.ProductComments) //{ //} //ProductDAL.Save(); CommentDAL.Delete(pComment); return(Json(true)); }
public IEnumerable <tblComment> Delete(int SalonServicesId) { return(obj.Delete(SalonServicesId)); }
/// <summary> /// 删除一条数据 /// </summary> public bool Delete(int CommentId) { return(dal.Delete(CommentId)); }
/// <summary> /// 删除 /// </summary> /// <param name="Id">主键Id</param> /// <returns>bool值,判断是否操作成功</returns> public bool Delete(int Id) { return(dal.Delete(Id)); }