Ejemplo n.º 1
0
        protected void Delete_Command(object sender, CommandEventArgs e)
        {
            int ID = Int32.Parse(e.CommandArgument.ToString());
            RegistrationActions ra = new Logic.RegistrationActions();

            ra.RemoveRegistration(ID);
            //((Label)Master.FindControl("LabelID")).Text = "Successfully deleted registration.";
            Response.Redirect("~/UserHome.aspx");
        }
Ejemplo n.º 2
0
        protected void Register_Command(object sender, CommandEventArgs e)
        {
            uint ID = UInt32.Parse(e.CommandArgument.ToString());
            RegistrationActions ra = new Logic.RegistrationActions();

            ra.AddRegistration(ID);
            //((Label)Master.FindControl("LabelID")).Text = "Successfully registered for event.";
            Response.Redirect("~/EventList.aspx");
        }
Ejemplo n.º 3
0
        public List <OTManager.Models.Registration> GetUserRegistrations()
        {
            RegistrationActions ra = new Logic.RegistrationActions();

            return(ra.GetRegistrations());
        }
Ejemplo n.º 4
0
        public List <OTManager.Models.Event> GetAvailableEvents()
        {
            RegistrationActions ra = new Logic.RegistrationActions();

            return(ra.GetEvents());
        }