private static void GetById(BlogLogic logic) { Console.Write("ENTERT ID HERE: "); int id = int.Parse(Console.ReadLine()); var q = logic.GetBlogById(id); Console.WriteLine("\n:: SELECTED BLOG ::\n"); Console.WriteLine(q); // tostring Console.ReadLine(); }
private static void ChangeTitle(BlogLogic logic) { Console.Write("ENTER ID HERE: "); int id = int.Parse(Console.ReadLine()); Console.Write("ENTER NEW TITLE HERE: "); string newTitle = Console.ReadLine(); logic.ChangeBlogTitle(id, newTitle); var q = logic.GetBlogById(id); Console.WriteLine("\n:: NEW TITLE ::\n"); Console.WriteLine(q.Title); Console.ReadLine(); }