Ejemplo n.º 1
0
        // GET: Communication
        public ActionResult Index(int?ruserid)
        {
            var userid = Convert.ToInt32(Session["User_id"]);

            if (userid > 0)
            {
                var messsage = CommunicationManage.SelectCommenicatio(userid).Take(12);
                var atten    = AttentionManage.selectallatten(userid);
                var atten1   = AttentionManage.selectbatten(userid);

                var          timesd = Int64.Parse(DateTime.Now.ToString("yyyyMMdd")) - 1;
                CommuMessage inde   = new CommuMessage();
                inde.Attention1     = atten;
                inde.Attention2     = atten1;
                inde.Communication1 = messsage;
                return(View(inde));
            }
            else
            {
                return(View());
            }
        }