Пример #1
0
        public ActionResult SelectMessagecomm(int ruserid)
        {
            CommuMessage inde   = new CommuMessage();
            var          userid = Convert.ToInt32(Session["User_id"]);

            var messaer1 = CommunicationManage.SelectMessage(userid, ruserid);

            if (messaer1 == null)
            {
                return(HttpNotFound());
            }
            inde.Communication2 = messaer1;
            return(View(inde));
        }
Пример #2
0
        public ActionResult SelectContent(int ruserid)
        {
            var          userid   = Convert.ToInt32(Session["User_id"]);
            var          message1 = CommunicationManage.SelectMessage(userid, ruserid);
            var          message2 = CommunicationManage.SelectMessage(ruserid, userid);
            CommuMessage indeq    = new CommuMessage();

            if (message2 != null)
            {
                indeq.Communication3 = message1;
                indeq.Communication4 = message2;
            }
            else
            {
                ViewBag.cohtenk      = 1;
                indeq.Communication3 = message1;
            }



            return(View(indeq));
        }