public IHttpActionResult DeleteComment(object obj) { try { JObject JsonObject = JObject.Parse(obj.ToString()); ViewModel.tblComment DelComment = JsonObject.ToObject <ViewModel.tblComment>(); bool ret = BisComment.DeleteComment(DelComment); if (ret) { return(Ok(ret)); } else { return(NotFound()); } } catch { return(NotFound()); } }
public bool UpdateComment(ViewModel.tblComment Comment) { return(sqlHelper.RunProcedure("sp_tblComment_Update", Comment) > 0); }
public bool DeleteComment(ViewModel.tblComment Comment) { return(sqlHelper.RunProcedure("sp_tblComment_DeleteRow", Comment) > 0); }
public bool AddComment(ViewModel.tblComment Comment) { return(sqlHelper.RunProcedure("sp_tblComment_Insert", Comment) > 0); }