Exemplo n.º 1
0
        public JsonResult ListMaPB(string mpb)
        {
            var db = new ModelOneMovie();
            var dt = db.BoPhims.Where(x => x.PhimBo.ToString().Contains(mpb)).Select(x => new { x.PhimBo, x.TenBP }).ToList();

            return(Json(new
            {
                data = dt,
                status = true
            }, JsonRequestBehavior.AllowGet));
        }
Exemplo n.º 2
0
        public JsonResult ListTenDD(string dd)
        {
            var db = new ModelOneMovie();
            var dt = db.DaoDiens.Where(x => x.TenDD.Contains(dd)).Select(x => x.TenDD).ToList();

            return(Json(new
            {
                data = dt,
                status = true
            }, JsonRequestBehavior.AllowGet));
        }
Exemplo n.º 3
0
        public JsonResult ListMaNSX(string mnsx)
        {
            string[] token = mnsx.Split(',');
            string   last  = token[token.Length - 1];
            var      db    = new ModelOneMovie();
            var      dt    = db.NSXes.Where(x => x.MaNSX.ToString().Contains(last)).Select(x => new { x.MaNSX, x.TenNSX }).ToList();

            return(Json(new
            {
                data = dt,
                status = true
            }, JsonRequestBehavior.AllowGet));
        }
Exemplo n.º 4
0
        public JsonResult ListMaQG(string mqg)
        {
            //Lấy mã qg sau dấu phẩy cuối cùng
            string[] token = mqg.Split(',');
            string   last  = token[token.Length - 1];
            var      db    = new ModelOneMovie();
            var      dt    = db.QuocGias.Where(x => x.MaQG.ToString().Contains(last)).Select(x => new { x.MaQG, x.TenQG }).ToList();

            return(Json(new
            {
                data = dt,
                status = true
            }, JsonRequestBehavior.AllowGet));
        }
Exemplo n.º 5
0
 public BoPhimDAO()
 {
     db = new ModelOneMovie();
 }
Exemplo n.º 6
0
 public PhanPhimDAO()
 {
     db = new ModelOneMovie();
 }
Exemplo n.º 7
0
 public TaiKhoanDAO()
 {
     db = new ModelOneMovie();
 }