Пример #1
0
        public List <GiaTuyChonModel> TuyChonSTheoBangGia()
        {//Làm laij
            List <GiaTuyChonModel> lst = null;

            var nguon = GiaTuyChonDanhThiep.DocTheoIdBangGia(View.IdBangGiaChon).Select(x => new GiaTuyChonModel
            {
                IdTuyChon  = x.IdTuyChonDanhThiep,
                TenTuyChon = string.Format("{0}: {1:0,0.00}đ", x.TenTuyChon, x.GiaBan),
                GiaBan     = (int)x.GiaBan
            });

            if (nguon != null)
            {
                lst = nguon.ToList();
            }

            return(lst);
        }
Пример #2
0
 public List <GiaTuyChonDanhThiep> GiaTuyChonSTheoBangGia()
 {//
     return(GiaTuyChonDanhThiep.DocTheoIdBangGia(View.IdBangGiaChon));
 }