Esempio n. 1
0
        public ActionResult Chat()
        {
            var gun = TempData["GetMessages"] as MessageData[];

            if (gun == null)
            {
                return(RedirectToAction("GetMessages", "Gun"));
            }

            var messageModels = MessageFactory.ConvertToModel(gun);

            return(View(messageModels));
        }