public frmStudent() { InitializeComponent(); using (var scope = Bootstap.Regiter.BeginLifetimeScope()) { studentBussiness = scope.ResolveOptional <IStudentBussiness>(); } studentview = new StudentView(new Student()); }
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(); }