示例#1
0
        public TextBlock Edit(string id, string title, string data)
        {
            TextBlock block = Get(id);

            if (block == null)
            {
                block = new TextBlock();
            }
            block.Title   = title;
            block.Content = data;
            block.Save();
            Cached.Remove <TextBlock>(id);
            return(block);
        }
示例#2
0
 public UserService()
 {
     Cached = new Cached();
 }