コード例 #1
0
        public JsonResult WhisperEkle(Guid alanId)
        {
            VotedressUser         kullanici = Session["login"] as VotedressUser;
            PrivateMessageManager res       = new PrivateMessageManager();

            FriendManager friendManager = new FriendManager();
            Friend        friend        = friendManager.ArkadasKontrol(kullanici.id, alanId);

            if (friend == null)
            {
                WhisperManager whisperManager = new WhisperManager();
                whisperManager.AddWhisper(kullanici.id, alanId);
            }

            return(Json(null, JsonRequestBehavior.AllowGet));
        }