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); } }
public bool CreateNewProductBillMapping(BillProductMapping productBillMapp) { DAL_Products dAL_Products = new DAL_Products(); return(dAL_Products.CreateNewProductBillMapping(productBillMapp)); }