protected void Page_Load(object sender, EventArgs e) { try { IsUser(); _userId = GetUserId(); _bblUserTagSubscription = new BllUserTagSubscription(); _lstUserTagSubscription = new List <DtoUserTagSubscription>(); _lstUserTagSubscription = _bblUserTagSubscription.GetUserTagSubscription(_userId, ""); DatalistLinkTag.DataSource = _lstUserTagSubscription; DatalistLinkTag.DataBind(); } catch (Exception ex) { ex.ToExceptionless().Submit(); } }
public static void DeleteUserTagSubscription(string TagID) { try { var cookie = HttpContext.Current.Request.Cookies["Tagged"]; if (cookie != null) { var bllUserTagSubscription = new BllUserTagSubscription(); bllUserTagSubscription.DeleteUserTagSubscription( Convert.ToInt64(UtilityClass.DecryptStringAES(cookie["d"])), Convert.ToInt64(TagID)); } else { HttpContext.Current.Response.Redirect("Default.aspx"); } } catch (Exception ex) { ex.ToExceptionless().Submit(); } }