public JsonResult ListNgheSiYeuThich()
        {
            var bh = new NgheSiYeuThichDAO();

            if (Session["taikhoan"] != null)
            {
                var id   = ((NguoiDung)Session["taikhoan"]).IdNguoiDung;
                var list = bh.ListNgheSiYeuThich(id);
                return(Json(list, JsonRequestBehavior.AllowGet));
            }

            return(Json("error", JsonRequestBehavior.AllowGet));
        }
        public JsonResult AddNgheSiYeuThich(int id)
        {
            var nghesi = new NgheSiYeuThich();

            nghesi.IdNgheSi    = id;
            nghesi.IdNguoiDung = ((NguoiDung)Session["taikhoan"]).IdNguoiDung;
            NgheSiYeuThichDAO v = new NgheSiYeuThichDAO();
            var ktra            = v.KiemTra(id, ((NguoiDung)Session["taikhoan"]).IdNguoiDung);

            if (ktra)
            {
                v.Add(nghesi);
            }
            else
            {
                v.Delete(id, ((NguoiDung)Session["taikhoan"]).IdNguoiDung);
                return(Json("error", JsonRequestBehavior.AllowGet));
            }

            return(Json("sucess", JsonRequestBehavior.AllowGet));
        }