Ejemplo n.º 1
0
        public ActionResult SeenMessage(int typeMsg)
        {
            bool seen = new MessageBillDao().SeenMessage(typeMsg);

            return(Json(new
            {
                status = seen
            }, JsonRequestBehavior.AllowGet));
        }
Ejemplo n.º 2
0
        public ActionResult GetMessage()
        {
            var dao = new MessageBillDao();

            int[] stt     = dao.GetMessage();
            int   c       = stt.Count(x => x != -2);
            var   lstTime = dao.GetTimeBill();

            return(Json(new
            {
                status = stt,
                count = c,
                timeCD = lstTime[0].ToString(),
                timeDH = lstTime[1].ToString()
            }, JsonRequestBehavior.AllowGet));
        }