Example #1
0
        public void Post([FromBody] CustomerDetails cd)
        {
            CustomerMethods cm = new CustomerMethods();

            int Cu_Id = cm.InsertCustomer(cd, out string errormsg);

            PriceMethods pm = new PriceMethods();

            Random rand = new Random();

            // autogenerate price
            pm.InsertPrice(Cu_Id, rand.Next(501), out string errormsg1);
        }