//删除博客 static void Delete() { Console.WriteLine("请输入ID"); int id = int.Parse(Console.ReadLine()); BlogBusinessLayer bbl = new BlogBusinessLayer(); Blog blog = bbl.Query(id); bbl.Delete(blog); }
//删除 static void Delete() { Console.WriteLine("请输入ID"); int id = int.Parse(Console.ReadLine()); BlogBusinessLayer bbl = new BlogBusinessLayer(); StudentClass studentClass = bbl.Query(id); bbl.Delete(studentClass); }
//删除博客 static void Delete() { QueryBlog(); BlogBusinessLayer bbl = new BlogBusinessLayer(); Console.WriteLine("请输入需要删除到博客id"); int id = int.Parse(Console.ReadLine()); Blog blog = bbl.Query(id); bbl.Delete(blog); Console.Clear(); selectBlog(); }