Example #1
0
        public ResponseBody <bool> Delete(int id)
        {
            var userNotes = new sline_notes {
                id = id
            };
            var res = _INotesBLL.Delete(userNotes);

            return(new ResponseBody <bool> {
                Result = res, Code = "", Message = ""
            });
        }
Example #2
0
        public ResponseBody <bool> Post(sline_notes notes)
        {
            var res = false;

            if (notes.id > 0)
            {
                res = _INotesBLL.Add(notes);
            }
            else
            {
                var props = new string[] { "memberid", "title", "bannerpic", "litpic", "description", "content", "shownum", "modtime", "status", "reason", "displayorder", "issend", "kindlist", "finaldestid" };
                res = _INotesBLL.Update(notes, props);
            }
            return(new ResponseBody <bool> {
                Result = res, Code = "", Message = ""
            });
        }