/// <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); }
static void crateBlog() { Console.WriteLine("请输入一个博客名称"); string name = Console.ReadLine(); Blog blog = new Blog(); blog.Name = name; BlogBusinessLayer bbl = new BlogBusinessLayer(); bbl.Add(blog); }
static void createStudentClass() { Console.WriteLine("请输入一个班级的名称"); string name = Console.ReadLine();//接收一个用户的名字 StudentClass blog = new StudentClass(); blog.StudentClassName = name; BlogBusinessLayer bbl = new BlogBusinessLayer(); bbl.Add(blog); }
//增加博客 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(); }