Esempio n. 1
0
        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));
        }
Esempio n. 2
0
        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));
 }
Esempio n. 4
0
 /// <summary>
 /// 删除一条数据
 /// </summary>
 public bool Delete(int CommentId)
 {
     return(dal.Delete(CommentId));
 }
Esempio n. 5
0
 /// <summary>
 /// 删除
 /// </summary>
 /// <param name="Id">主键Id</param>
 /// <returns>bool值,判断是否操作成功</returns>
 public bool Delete(int Id)
 {
     return(dal.Delete(Id));
 }