-
Notifications
You must be signed in to change notification settings - Fork 0
/
Client.cs
42 lines (38 loc) · 1.11 KB
/
Client.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
using System;
namespace ClientSide
{
using ServerSide;
class MainClass
{
static void Main(string[] args)
{
int n;
Console.WriteLine("Enter 1 for viewing employee by Location");
Console.WriteLine("Enter 2 for viewing employee by Date of birth");
Console.WriteLine("Enter 3 for viewing employee by Designation");
n = int.Parse(Console.ReadLine());
if(n==1)
{
Console.WriteLine("Enter location");
string l = Console.ReadLine();
MyClass.Location(l);
}
else if(n==2)
{
Console.WriteLine("Enter DOB");
string dob = Console.ReadLine();
MyClass.DOB(dob);
}
else if(n==3)
{
Console.WriteLine("Enter designation");
string d = Console.ReadLine();
MyClass.Designation(d);
}
else
{
Console.WriteLine("Incorrect entry");
}
}
}
}