public ActionResult Edit([Bind(Include =
                                           " UserId"
                                           + ",QbCustomerId"
                                           + ",QuickbooksAccessToken"
                                           + ",QuickbooksSecretToken"
                                           + ",QbSalesAccount"
                                           + ",QbSalesTax"
                                           + ",QbSalesDiscounts"
                                           + ",QbFreightIncome"
                                           + ",QbCash"
                                           + ",QbCostOfGoods"
                                           + ",QbUndepositiedFunds"
                                           + ",QbSalesId"
                                           + ",QbSalesTaxId"
                                           + ",QbDiscountsId"
                                           + ",QbFreightId"
                                           + ",QbCashId"
                                           + ",QbCostofGoodsId"
                                           + ",QbUndepositedFundsId"
                                       )] OurCustomer OurCustomer)
        {
            OurCustomer oOurCustomer = new OurCustomer();

            oOurCustomer.UserId = System.Convert.ToInt32(OurCustomer.UserId);
            oOurCustomer        = OurCustomerData.Select_Record(OurCustomer);

            if (ModelState.IsValid)
            {
                bool bSucess = false;
                bSucess = OurCustomerData.Update(oOurCustomer, OurCustomer);
                if (bSucess == true)
                {
                    return(RedirectToAction("Index"));
                }
                else
                {
                    ModelState.AddModelError("", "Can Not Update");
                }
            }

            return(View(OurCustomer));
        }
        public ActionResult DeleteConfirmed(
            Int32?UserId
            )
        {
            OurCustomer OurCustomer = new OurCustomer();

            OurCustomer.UserId = System.Convert.ToInt32(UserId);
            OurCustomer        = OurCustomerData.Select_Record(OurCustomer);

            bool bSucess = false;

            bSucess = OurCustomerData.Delete(OurCustomer);
            if (bSucess == true)
            {
                return(RedirectToAction("Index"));
            }
            else
            {
                ModelState.AddModelError("", "Can Not Delete");
            }
            return(null);
        }
        // GET: /OurCustomer/Delete/<id>
        public ActionResult Delete(
            Int32?UserId
            )
        {
            if (
                UserId == null
                )
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }


            OurCustomer OurCustomer = new OurCustomer();

            OurCustomer.UserId = System.Convert.ToInt32(UserId);
            OurCustomer        = OurCustomerData.Select_Record(OurCustomer);

            if (OurCustomer == null)
            {
                return(HttpNotFound());
            }
            return(View(OurCustomer));
        }