Exemplo n.º 1
0
        public ActionResult ReadMassage(int c)
        {
            Database            db     = new Database();
            NewsDAO             nDAO   = new NewsDAO(db);
            HashSet <NewsModel> nModel = nDAO.FindAllSetByCustID(c);

            db.Close();

            ViewBag.NEWS = nModel;

            db   = new Database();
            nDAO = new NewsDAO(db);
            nDAO.Readed(c);
            db.Close();

            return(View());
        }