public ActionResult MessageIndex()
        {
            var model = messageData.GetAll();

            TempData["Unreaded"] = messageData.UnReaded();
            return(View(model));
        }
 public void OnGet(int MessageId)
 {
     Messages = messageData.GetAll();
 }