public void PlaceOrder(List <cart> list) { if (list.Count != 0) { DataTable dt = ORM.ConvertIntoTable <cart>(list); DataBase.InsertIntoDB("PlaceOrder", dt, "@carttb", new SqlParameter[] { new SqlParameter("@uid", this.UserID) }); } }