Exemplo n.º 1
0
 public bool CreateNewProductBillMapping(BillProductMapping productBillMapp)
 {
     using (var context = new InvoiceGenEntities())
     {
         context.BillProductMappings.Add(productBillMapp);
         context.SaveChanges();//this generates the Id for customer
     }
     if (productBillMapp.ID > 0)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Exemplo n.º 2
0
        public bool CreateNewProductBillMapping(BillProductMapping productBillMapp)
        {
            DAL_Products dAL_Products = new DAL_Products();

            return(dAL_Products.CreateNewProductBillMapping(productBillMapp));
        }