Ejemplo n.º 1
0
 public BILL_Product CreateBillProduct(BILL_Product billProductToAdd)
 {
     using (SUPERPEntities context = new SUPERPEntities(false))
     {
         var p = context.BILL_Product.Add(billProductToAdd);
         context.SaveChanges();
         return p;
     }
 }
Ejemplo n.º 2
0
 public BILL_Product EditBillProduct(BILL_Product billProductToEdit)
 {
     using (SUPERPEntities context = new SUPERPEntities(false))
     {
         var p = context.BILL_Product.Find(billProductToEdit.Product_Id);
         p = billProductToEdit;
         context.SaveChanges();
         return p;
     }
 }
Ejemplo n.º 3
0
        public ProductExtended(BILL_Product product, long billQuotation_id)
        {
            base.BILL_Category = product.BILL_Category;
            base.BILL_LineBillQuotation = product.BILL_LineBillQuotation;
            base.BILL_Vat = product.BILL_Vat;
            base.Category_Id = product.Category_Id;
            base.DescriptionPro = product.DescriptionPro;
            base.Name = product.Name;
            base.Price = product.Price;
            base.Product_Id = product.Product_Id;
            base.Vat_Id = product.Vat_Id;

            var DAL = new FacturationDAL.LineBillQuotationDAL();
            //var listProduct = DAL.productsIncludedInBill(billQuotation_id);
            included = DAL.productsIncludedInBill(billQuotation_id, Product_Id);
        }