Ejemplo n.º 1
0
 public frmStudent()
 {
     InitializeComponent();
     using (var scope = Bootstap.Regiter.BeginLifetimeScope())
     {
         studentBussiness = scope.ResolveOptional <IStudentBussiness>();
     }
     studentview = new StudentView(new Student());
 }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            Console.WriteLine(" Enter EmailId");
            string emailId = Console.ReadLine();

            Console.WriteLine(" Enter Password");
            string password = Console.ReadLine();
            IAuthenticationBussiness authenticationobject = BussinessLayerFactory.GetAuthenticationRepo();
            string studentId = authenticationobject.ValidateLogin(emailId, password);

            Console.WriteLine(studentId);
            if (studentId != null)
            {
                IStudentBussiness studentObject = BussinessLayerFactory.GetStudentRepo();
                Student           studentobj    = studentObject.GetStudentDetails(studentId);
                PrintDetails(studentobj);
            }
            Console.ReadKey();
        }