Beispiel #1
0
        public ProductDetailsModel(int?id)
        {
            var context = new Model.DbModel.ProductDetailsModel();

            Details = context.getDetails(id);

            ListProduct_Recommend = context.getDetails_Recommend();
        }
Beispiel #2
0
        public CompareModel(int id_item_1, int id_item_2, int id_item_3)
        {
            var dbModel = new Model.DbModel.ProductDetailsModel();

            Item_1 = dbModel.getDetails(id_item_1);
            Item_2 = dbModel.getDetails(id_item_2);

            if (id_item_3 == 0)
            {
                Item_3 = null;
                return;
            }
            else
            {
                Item_3 = dbModel.getDetails(id_item_3);
            }
        }