protected void Page_Load(object sender, EventArgs e) { list = (List <CheckOutLogic>)Session["Info"]; shipList = (List <ShippingInfoLogic>)Session["shipInfo"]; int partNo = (int)Session["partNo"]; int updateOnHand = (int)Session["updateOnHand"]; DataList1.DataSource = shipList; DataList1.DataBind(); DataList2.DataSource = shipList; DataList2.DataBind(); //DataList3.DataSource = list; //DataList3.DataBind(); //adptParts.in if (!IsPostBack) { adptParts.UpdateOnHand(updateOnHand, partNo); InsertDataIntoDatabase.InsertCustomerInfo(shipList); InsertDataIntoDatabase.InsertOrderProd(list); InsertDataIntoDatabase.InsertOrder(today); InsertDataIntoDatabase.InsertInvoice(today); } }
// POST: api/UserTable public HttpResponseMessage Post([FromBody] UserTable value) { string userName = ""; InsertDataIntoDatabase insertData = new InsertDataIntoDatabase(); insertData.ProcedureInsertIntoUserTable(value); userName = user.USER_NAME; HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.Created); //response.Headers.Location = new Uri(Request.RequestUri, String.Format("UserTable/{0}", id)); return(response); }