private void ExcuteMemoDelete(WSNode node)
        {
            IMemoDao dao    = ORMFactory.GetService <IMemoDao>(typeof(IMemoDao));
            int      idx    = Convert.ToInt32(node.Data);
            var      entity = dao.GetEneity(idx);

            dao.Delete(entity);
        }
        private void SetMemoModify(WSNode node)
        {
            IMemoDao dao  = ORMFactory.GetService <IMemoDao>(typeof(IMemoDao));
            String   temp = node.Data;
            Memo     memo = new Memo();
            var      map  = GetParameter(node.Data);

            memo.Idx          = Convert.ToInt32(map["idx"]);
            memo              = dao.GetEneity(memo.Idx);
            memo.Title        = map.ContainsKey("title") && !String.IsNullOrEmpty(map["title"].Trim()) ? map["title"] : "No title";
            memo.Contents     = map.ContainsKey("contents") && !String.IsNullOrEmpty(map["contents"].Trim()) ? map["contents"] : "";
            memo.RecentlyDate = DateTime.Now;
            dao.Update(memo);
        }
        private void GetMemoItem(WSNode node)
        {
            int idx;

            try
            {
                idx = Convert.ToInt32(node.Data);
            }
            catch (Exception)
            {
                Error(node);
                return;
            }
            IMemoDao dao  = ORMFactory.GetService <IMemoDao>(typeof(IMemoDao));
            var      item = dao.GetEneity(idx);

            node.Data = JsonConvert.SerializeObject(item);
        }