-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMVCPattern.cs
35 lines (24 loc) · 846 Bytes
/
MVCPattern.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
using System;
using System.Collections.Generic;
namespace CityDBTest
{
class MvcPattern
{
static void Main(string[] args)
{
List<City> _entries = new List<City>();
DataAccess _db = new DataAccess();
Controller controller = new Controller();
string[] searchTerms = new string[3];
//Console.WriteLine("Table: ");
searchTerms[0] = "city";
//Console.ReadLine();
Console.WriteLine("Enter search category : ");
searchTerms[1] = Console.ReadLine();
Console.WriteLine("Enter your search restriction: ");
searchTerms[2] = Console.ReadLine();
_entries = controller.SearchByTerms(searchTerms, _db);
//controller.PrintList(_entries);
}
}
}