Beispiel #1
0
        /// <summary>
        /// 创建一个博客
        /// </summary>
        static void CrateBlog()
        {
            Console.WriteLine("请输入将要添加的博客用户名称");
            string name = Console.ReadLine();
            Blog   blog = new Models.Blog();

            blog.Name = name;
            BlogBusinessLayer bbl = new BlogBusinessLayer();

            bbl.Add(blog);
        }
Beispiel #2
0
        static void crateBlog()
        {
            Console.WriteLine("请输入一个博客名称");
            string name = Console.ReadLine();
            Blog   blog = new Blog();

            blog.Name = name;
            BlogBusinessLayer bbl = new BlogBusinessLayer();

            bbl.Add(blog);
        }
Beispiel #3
0
        static void createStudentClass()
        {
            Console.WriteLine("请输入一个班级的名称");
            string       name = Console.ReadLine();//接收一个用户的名字
            StudentClass blog = new StudentClass();

            blog.StudentClassName = name;
            BlogBusinessLayer bbl = new BlogBusinessLayer();

            bbl.Add(blog);
        }
Beispiel #4
0
        //增加博客
        static void createBlog()
        {
            QueryBlog();
            Console.WriteLine("请输入新的博客名");
            string name = Console.ReadLine();
            Blog   blog = new Blog();

            blog.Name = name;
            BlogBusinessLayer bbl = new BlogBusinessLayer();

            bbl.Add(blog);
            Console.Clear();
            selectBlog();
        }