Beispiel #1
0
        public ActionResult SendMessage(Message message)
        {
            IDAL DAL = new DBDataAL();
            DAL.CreateMessage(message);

            string Name = User.Identity.Name;
            FriendData data = new FriendData(Name);
            return View("~/Views/Web/Friends.cshtml", data);
        }
        public ActionResult SendMessage(Message message)
        {
            IDAL DAL = new DBDataAL();
            message.TimeStamp = BitConverter.GetBytes(DateTime.Now.Ticks);
            DAL.CreateMessage(message);

            FriendData data = new FriendData("matt");
            return View("Web/Friends", data);
        }