public TicketPriorities GetTicketsByCurrentPriority()
        {
            TicketPriorities pr = new TicketPriorities();
            ArrayList res = new ArrayList();
            res = this.helpDeskService.getNumberOfTicketsByCurrentPriority();
            Int16 zero = 0;
            Int16 one = 1;
            Int16 two = 2;
            Int16 three = 3;

            for (int i = 0; i < res.Count; i++)
            {
                
                if (res[i].Equals(zero))
                {
                    pr.critical++;
                }
                else if(res[i].Equals(one)){
                    pr.high++;
                }

                else if(res[i].Equals(two)){
                    pr.medium++;
                }

                else if(res[i].Equals(three)){
                    pr.low++;
                }

            }

            return pr;
        }
        public TicketPriorities PostTicketsByPriorityBeforeDate(Int64 markTicks)
        {
            TicketPriorities pr = new TicketPriorities();
            ArrayList res = new ArrayList();

            DateTime mark = new DateTime(2014, 09, 3);

            res = this.helpDeskService.getNumberOfTicketsByPriorityBeforeDate(markTicks);
            Int16 zero = 0;
            Int16 one = 1;
            Int16 two = 2;
            Int16 three = 3;

            for (int i = 0; i < res.Count; i++)
            {

                if (res[i].Equals(zero))
                {
                    pr.critical++;
                }
                else if (res[i].Equals(one))
                {
                    pr.high++;
                }

                else if (res[i].Equals(two))
                {
                    pr.medium++;
                }

                else if (res[i].Equals(three))
                {
                    pr.low++;
                }

            }

            return pr;
        }
        public TicketPriorities GetTicketsByPassPriority(Int64 startTicks, Int64 endTicks)
        {
            TicketPriorities pr = new TicketPriorities();
            ArrayList res = new ArrayList();

            //DateTime start = new DateTime(2014, 06, 30);

            //DateTime end = new DateTime(2014, 07, 1);

            res = this.helpDeskService.getNumberOfTicketsByPastPriority(startTicks, endTicks);

            Int16 zero = 0;
            Int16 one = 1;
            Int16 two = 2;
            Int16 three = 3;

            for (int i = 0; i < res.Count; i++)
            {

                if (res[i].Equals(zero))
                {
                    pr.critical++;
                }
                else if (res[i].Equals(one))
                {
                    pr.high++;
                }

                else if (res[i].Equals(two))
                {
                    pr.medium++;
                }

                else if (res[i].Equals(three))
                {
                    pr.low++;
                }

            }

            return pr;
        }