Example #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     context           = new RepoMovie();
     ctxRented         = new RepoRentedMovies();
     ctxCustomer       = new RepoCustomer();
     _lblUserName.Text = Session["User"].ToString();
 }
Example #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     context     = new RepoMovie();
     ctxRented   = new RepoRentedMovies();
     ctxCustomer = new RepoCustomer();
     _CreateLabel_Load();
 }
Example #3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     context = new RepoCustomer();
     if (!IsPostBack)
     {
         GetUserToUpdate();
     }
 }
Example #4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     context     = new RepoRentedMovies();
     cxtCustomer = new RepoCustomer();
     ctxMovie    = new RepoMovie();
     if (!IsPostBack)
     {
         _txtBoxRentedTo.Text = DateTime.Now.AddDays(7).ToString();
     }
 }
Example #5
0
 protected void Page_Load(object sender, EventArgs e)
 {
     context     = new RepoRentedMovies();
     cxtCustomer = new RepoCustomer();
     ctxMovie    = new RepoMovie();
     if (!IsPostBack)
     {
         GetRented();
     }
 }
Example #6
0
        public static void GetCustomers()
        {
            RepoCustomer repoCust  = new RepoCustomer();
            var          customers = repoCust.GetCustomer();

            foreach (var customer in customers)
            {
                Console.WriteLine($"CustomerID: {customer.CustomerID}");
                Console.WriteLine($"Customer Name: {customer.CustomerName}");
                foreach (var renteresMovie in customer.RenteredMoviesCustomer)
                {
                    Console.WriteLine($"CustomerID: {renteresMovie.Customer}");
                }
            }
            Console.ReadKey();
        }
Example #7
0
 protected void Page_Load(object sender, EventArgs e)
 {
     context     = new RepoMovie();
     ctxCustomer = new RepoCustomer();
 }