Example #1
0
 /// <summary>
 /// A method that supports the subsystem to invite volunteers to the parish. Invokes the SendInvitation method.
 /// Parameters that are entered by the user are the subject and contents of the invitation,
 /// then are sent as parameters of the SendIvitation method
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void Send_Invitation(object sender, EventArgs e)
 {
     db = new SQLDatabase();
     db.Connect();
     if (Request.QueryString["id_u"] != null)
     {
         id_user = int.Parse(Request.QueryString["id_u"]);
     }
     if (Request.QueryString["id_e"] != null)
     {
         id_event = int.Parse(Request.QueryString["id_e"]);
     }
     db.SendInvitation(id_event, db.getId((string)Session["id"]), id_user, title.Value, content.Value);
     db.Disconnect();
 }