-
Notifications
You must be signed in to change notification settings - Fork 0
/
Program.cs
27 lines (23 loc) · 836 Bytes
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using System;
namespace EFCore_CrudApp
{
class Program
{
static void Main(string[] args)
{
CrudUtility.AddBook();
CrudUtility.GetBooks();
Console.Write("Enter Book's Id to be deleted : ");
int deletedBookId = int.Parse(Console.ReadLine());
CrudUtility.DeleteBook(deletedBookId);
Console.Write("Enter Book's Id to be updated : ");
int updatedBookId = int.Parse(Console.ReadLine());
Console.Write("Enter Book's Title : ");
string bookTitle = Console.ReadLine();
Console.Write("Enter Book's Gener : ");
string bookGener = Console.ReadLine();
CrudUtility.UpdateBookDetails(updatedBookId, bookTitle, bookGener);
CrudUtility.GetBooks();
}
}
}