Exemple #1
0
        public static DTOTrangChiTiet getAnItemByComboID(int comboid)
        {
            //DTOTrangChiTiet dto = new DTOTrangChiTiet();
            ////Combo,ChiTietCombo,SanPham,ChiTietSanPham
            //Combo combo = ComboDAO.getOneById(comboid);
            //double? gia = ChiTietComboDAO.caculateComboTotalPrice(comboid);
            //EFModels.ChiTietCombo chiTietCombo = ChiTietComboDAO.getComboDetail(comboid);
            //List < ChiTietComboDTO > listChiTietComboDTO= ChiTietComboConverter.ConvertToDTO(chiTietCombo,listSanPhamDTO);
            //dto = TrangChiTietConverter.ConvertToDTO(combo, gia, listChiTietComboDTO);
            Combo  comboEntity = ComboDAO.getOneById(comboid);
            double?gia         = ChiTietComboDAO.caculateComboTotalPrice(comboid);

            return(TrangChiTietConverter.ConvertToDTO(comboEntity, gia));
        }
Exemple #2
0
 public static double?caculateComboTotalPrice(int idcombo)
 {
     return(ChiTietComboDAO.caculateComboTotalPrice(idcombo));
 }