コード例 #1
0
        public string Insert(LoaiVe loaiVe)
        {
            string[] parameters = new string[5];

            parameters[0] = loaiVe.TenLoaiVe;
            parameters[1] = loaiVe.NgayLap;
            parameters[2] = loaiVe.MenhGia.ToString();
            parameters[3] = loaiVe.MaDoiTac;
            parameters[4] = loaiVe.MaCoCauGiaiThuong;

            return(this.loaiVeDAL.Insert(parameters));
        }
コード例 #2
0
        public void Update(LoaiVe loaiVe)
        {
            string[] parameters = new string[6];

            parameters[0] = loaiVe.MaLoaiVe;
            parameters[1] = loaiVe.TenLoaiVe;
            parameters[2] = loaiVe.NgayLap;
            parameters[3] = loaiVe.MenhGia.ToString();
            parameters[4] = loaiVe.MaDoiTac;
            parameters[5] = loaiVe.MaCoCauGiaiThuong;

            this.loaiVeDAL.Update(parameters);
        }