Пример #1
0
        public ActionResult ChangeStatusComic(int id, int stt)
        {
            ComicDAO comicDao = new ComicDAO();
            Boolean  b        = comicDao.ChangeStatusComic(id, stt);

            return(Content(b.ToString()));
        }
Пример #2
0
        public Boolean ChangeStatusComic(int id, int stt)
        {
            if (CheckStatusUser())
            {
                return(false);
            }

            if (CheckAdmin())
            {
                ComicDAO comicDao = new ComicDAO();
                Boolean  b        = comicDao.ChangeStatusComic(id, stt);

                return(b);
            }

            return(false);
        }