protected void Page_Load(object sender, EventArgs e) { context = new RepoMovie(); ctxRented = new RepoRentedMovies(); ctxCustomer = new RepoCustomer(); _lblUserName.Text = Session["User"].ToString(); }
protected void Page_Load(object sender, EventArgs e) { context = new RepoMovie(); ctxRented = new RepoRentedMovies(); ctxCustomer = new RepoCustomer(); _CreateLabel_Load(); }
protected void Page_Load(object sender, EventArgs e) { context = new RepoCustomer(); if (!IsPostBack) { GetUserToUpdate(); } }
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(); } }
protected void Page_Load(object sender, EventArgs e) { context = new RepoRentedMovies(); cxtCustomer = new RepoCustomer(); ctxMovie = new RepoMovie(); if (!IsPostBack) { GetRented(); } }
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(); }
protected void Page_Load(object sender, EventArgs e) { context = new RepoMovie(); ctxCustomer = new RepoCustomer(); }