コード例 #1
0
        public static string Sua(GiaTuyChonDanhThiep item)
        {
            GiaTuyChonDanhThiepLogic giaTChonDThiepLogic = new GiaTuyChonDanhThiepLogic();
            var itemBDO = new GiaTuyChonDanhThiepBDO();

            ChuyenDoiGiayDTOThanhBDO(item, itemBDO);
            return(giaTChonDThiepLogic.Sua(itemBDO));
        }
コード例 #2
0
        public static GiaTuyChonDanhThiep DocTheoId(int IdBangGiaDanhThiep, int idHangKH)
        {
            GiaTuyChonDanhThiep      item           = null;
            GiaTuyChonDanhThiepLogic markUpLNGLogic = new GiaTuyChonDanhThiepLogic();

            try
            {
                item = new GiaTuyChonDanhThiep();
                var itemBDO = markUpLNGLogic.DocTheoId(IdBangGiaDanhThiep, idHangKH);
                ChuyenDoiGiayBDOThanhDTO(itemBDO, item);
            }
            catch { }
            return(item);
        }
コード例 #3
0
        public static List <GiaTuyChonDanhThiep> DocTheoIdTuyChon(int iD)
        {
            List <GiaTuyChonDanhThiep> lst = null;
            GiaTuyChonDanhThiepLogic   giaTChonDThiepLogic = new GiaTuyChonDanhThiepLogic();

            try
            {
                lst = giaTChonDThiepLogic.DocTheoIdTuyChon(iD).Select(x => new GiaTuyChonDanhThiep
                {
                    IdBangGiaDanhThiep = x.IdBangGiaDanhThiep,
                    IdTuyChonDanhThiep = x.IdTuyChonDanhThiep,
                    TenBangGia         = x.TenBangGia,
                    GiaBan             = x.GiaBan
                }).ToList();
            }
            catch { }
            return(lst);
        }
コード例 #4
0
        public static string Xoa(int idBangGia, int idTuyChon)
        {
            GiaTuyChonDanhThiepLogic giaTChonDThiepLogic = new GiaTuyChonDanhThiepLogic();

            return(giaTChonDThiepLogic.Xoa(idBangGia, idTuyChon));
        }