Beispiel #1
0
        protected async void submit_Click(object sender, EventArgs e)
        {
            string date      = Calendar1.SelectedDate.ToShortDateString();
            string mySQLDate = date.Split('.')[2] +
                               '-' + date.Split('.')[1] +
                               '-' + date.Split('.')[0] +
                               " " +
                               time.SelectedValue;
            await MySQLServer.add_session(films_id[films.SelectedIndex], mySQLDate, cost.SelectedValue);

            Response.Redirect("~/Shows/", false);
        }