public bool InsertOrUpdate(bool opt, Comment_Object commentObject) { using (var db = new CarOnlineEntities()) { var result = db.WEB_CARONLINE_SP_Comment_InsertOrUpdate(opt, commentObject.CommentId, commentObject.PostId, commentObject.UserId, commentObject.ContentComment, commentObject.TotalOfLike, commentObject.CreateDate); return(result > 0); } }