public static bool SendTicket(string title, string description) { bool ret; try { string json = serv_proxy.AddTicket(title, description, token, null); ret = json.Contains("success"); } catch (Exception ex) { ret = false; } finally { } return(ret); }
protected void Create_Click(object sender, EventArgs e) { string title = String.Format("{0}", Request.Form["title"]); string description = String.Format("{0}", Request.Form["description"]); if (proxy.AddTicket(user.ID, title, description)) { Response.Redirect("ProfilePage.aspx?id=" + user.ID.ToString()); } }