Beispiel #1
0
        //
        // GET: /Sends/Bounces?sendID=
        public ActionResult Bounces(string sendID, int page = 1, int pageSize = 25)
        {
            int bounceCount = TransactionDB.GetBounceCount(sendID);
            int pageCount   = (int)Math.Ceiling(bounceCount / Convert.ToDouble(pageSize));

            return(View(new SendReportBounces(TransactionDB.GetBounceInfo(sendID, page, pageSize), sendID, page, pageCount)));
        }
Beispiel #2
0
        //
        // GET: /Bounces/
        public ActionResult Index(int?page = 1, int?pageSize = 25)
        {
            long deferred, rejected = 0;

            TransactionDB.GetBounceDeferredAndRejected(out deferred, out rejected);
            return(View(new BounceModel
            {
                BounceInfo = TransactionDB.GetBounceInfo(null, page.Value, pageSize.Value),
                CurrentPage = page.Value,
                PageCount = (int)Math.Ceiling(Convert.ToDouble(TransactionDB.GetBounceCount(null)) / pageSize.Value),
                DeferredCount = deferred,
                RejectedCount = rejected
            }));
        }