示例#1
0
        // GET: SachBQC
        public ActionResult Index()
        {
            List <SachBQCModel> books = SachBQCModel.layds();


            return(View(books));
        }
示例#2
0
        public ActionResult Read(int id)
        {
            var model = SachBQCModel.LayById(id);

            if (model == null)
            {
                return(HttpNotFound("404"));
            }

            //VỊP
            var au = MySsAuthUsers.GetAuth();

            if (au != null && au.IsVip1 == false)
            {
                model.PDF = model.Lite;
            }
            return(View(model));
        }