Exemple #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Stopwatch sw = new Stopwatch();

            sw.Start();
            string strResponse = string.Empty;

            try
            {
                var emailSubscriptions = usersDal.GetEmailSubscriptionsByEmail("*****@*****.**", true, "WeeklyDeals");
                sw.Stop();
                strResponse = string.Format("Success in {0} ms", sw.ElapsedMilliseconds);
            }
            catch (Exception)
            {
                strResponse = "Error";
            }


            Response.Write(strResponse);
        }