37 lines
755 B
C#
37 lines
755 B
C#
|
|
public class MasterController
|
|
{
|
|
|
|
public static void main(string[] args)
|
|
{
|
|
|
|
//The main Controller of the program, It will run all services here
|
|
|
|
// While loop to run everything
|
|
|
|
// 1. Initialize the Data Factory here
|
|
|
|
// 2. Create the SqlConnection object
|
|
|
|
int userInput = 0;
|
|
|
|
while (userInput != -1)
|
|
{
|
|
|
|
// Print the menu
|
|
|
|
//
|
|
if (userInput == 1)
|
|
{
|
|
// 1. User Managment goes here
|
|
}
|
|
|
|
// Trigger Archiving automatically
|
|
// Create new ArchiveManager object
|
|
// if (currentDate == 1){
|
|
// ArchiveManager.Controller()
|
|
|
|
// Logging also automatic
|
|
}
|
|
}
|
|
} |