Example #1
0
        public List <GiaTuyChonModel> TuyChonSTheoBangGia()
        {//Làm laij
            List <GiaTuyChonModel> lst = null;

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

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

            return(lst);
        }
 public List <GiaTuyChonTheNhua> GiaTuyChonSTheoBangGia()
 {//
     return(GiaTuyChonTheNhua.DocTheoIdBangGia(View.IdBangGiaChon));
 }