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"); }
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"); }
public List <OTManager.Models.Registration> GetUserRegistrations() { RegistrationActions ra = new Logic.RegistrationActions(); return(ra.GetRegistrations()); }
public List <OTManager.Models.Event> GetAvailableEvents() { RegistrationActions ra = new Logic.RegistrationActions(); return(ra.GetEvents()); }