public ActionResult Edit(Payments payments, string CreditNumber01) { int nPos = -1; string szError = ""; string szEncriptedData = ""; if (ModelState.IsValid) { //use the user supplied data if (!string.IsNullOrEmpty(CreditNumber01)) { nPos = CreditNumber01.IndexOf("*"); if (nPos == -1) { payments.CreditCardNumber = CreditNumber01; //Encode the credit card info if (!string.IsNullOrEmpty(payments.CreditCardNumber)) { szEncriptedData = TimelyDepotMVC.Controllers.PaymentController.EncriptInfo02(payments.CreditCardNumber, ref szError); payments.CreditCardNumber = szEncriptedData; } } else { //Do not replace the credit card number } } db.Entry(payments).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(payments)); }
public ActionResult Edit(CustomersCreditCardShipping customerscreditcardshipping, string CreditNumber01, string SecureCode01) { int nPos = -1; string szError = ""; string szEncriptedData = ""; if (ModelState.IsValid) { //use the user supplied data if (!string.IsNullOrEmpty(CreditNumber01)) { nPos = CreditNumber01.IndexOf("*"); if (nPos == -1) { customerscreditcardshipping.CreditNumber = CreditNumber01; //Encode the credit card info if (!string.IsNullOrEmpty(customerscreditcardshipping.CreditNumber)) { szEncriptedData = TimelyDepotMVC.Controllers.PaymentController.EncriptInfo02(customerscreditcardshipping.CreditNumber, ref szError); customerscreditcardshipping.CreditNumber = szEncriptedData; } } else { //Do not replace the credit card number } } if (!string.IsNullOrEmpty(SecureCode01)) { nPos = -1; nPos = SecureCode01.IndexOf("*"); if (nPos == -1) { customerscreditcardshipping.SecureCode = SecureCode01; //Encode the credit card info if (!string.IsNullOrEmpty(customerscreditcardshipping.SecureCode)) { szEncriptedData = TimelyDepotMVC.Controllers.PaymentController.EncriptInfo02(customerscreditcardshipping.SecureCode, ref szError); customerscreditcardshipping.SecureCode = szEncriptedData; } } else { //Do not replace the credit card number } } db.Entry(customerscreditcardshipping).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(customerscreditcardshipping)); }
public ActionResult Edit(Invoice invoice) { if (ModelState.IsValid) { db.Entry(invoice).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(invoice)); }
public ActionResult Edit(packagemaster packagemaster) { if (ModelState.IsValid) { db.Entry(packagemaster).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(packagemaster)); }
public ActionResult Edit(Applications applications) { if (ModelState.IsValid) { db.Entry(applications).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(applications)); }
public ActionResult Edit(DiscountManage discountmanage) { if (ModelState.IsValid) { db.Entry(discountmanage).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(discountmanage)); }
public ActionResult Edit(SUB_ITEM sub_item) { if (ModelState.IsValid) { db.Entry(sub_item).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(sub_item)); }
public ActionResult Edit(VendorItem vendoritem) { if (ModelState.IsValid) { db.Entry(vendoritem).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(vendoritem)); }
public ActionResult Edit(aspnet_Membership aspnet_membership) { if (ModelState.IsValid) { db.Entry(aspnet_membership).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(aspnet_membership)); }
public ActionResult Edit(VendorsBillingDept vendorsbillingdept) { if (ModelState.IsValid) { db.Entry(vendorsbillingdept).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(vendorsbillingdept)); }
public ActionResult Edit(SalesOrderBlindShip salesorderblindship) { if (ModelState.IsValid) { db.Entry(salesorderblindship).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(salesorderblindship)); }
public ActionResult Edit(VendorsSpecialNotes vendorsspecialnotes) { if (ModelState.IsValid) { db.Entry(vendorsspecialnotes).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(vendorsspecialnotes)); }
public ActionResult Edit(CustomersCardType customerscardtype) { if (ModelState.IsValid) { db.Entry(customerscardtype).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(customerscardtype)); }
public ActionResult Edit(PurchaseOrders purchaseorders) { if (ModelState.IsValid) { db.Entry(purchaseorders).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(purchaseorders)); }
public ActionResult Edit(packingitemdetail packingitemdetail) { if (ModelState.IsValid) { db.Entry(packingitemdetail).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(packingitemdetail)); }
public ActionResult Edit(ShipmentDetails shipmentdetails) { if (ModelState.IsValid) { db.Entry(shipmentdetails).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(shipmentdetails)); }
public ActionResult Edit(webpages_UsersInRoles webpages_usersinroles) { if (ModelState.IsValid) { db.Entry(webpages_usersinroles).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(webpages_usersinroles)); }
public ActionResult Edit(Warehouses warehouses) { if (ModelState.IsValid) { db.Entry(warehouses).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(warehouses)); }
public ActionResult Edit(UserProfile userprofile) { if (ModelState.IsValid) { db.Entry(userprofile).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(userprofile)); }
public ActionResult Edit(ImprintMethods imprintmethods) { if (ModelState.IsValid) { db.Entry(imprintmethods).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(imprintmethods)); }
public ActionResult Edit(CustomersShipAddress customersshipaddress) { if (ModelState.IsValid) { db.Entry(customersshipaddress).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(customersshipaddress)); }
public ActionResult Edit(COLLECTION collection) { if (ModelState.IsValid) { db.Entry(collection).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(collection)); }
public ActionResult Edit(VendorsContactAddress vendorscontactaddress) { if (ModelState.IsValid) { db.Entry(vendorscontactaddress).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(vendorscontactaddress)); }
public ActionResult Edit(PackageRateLogParameters packageratelogparameters) { if (ModelState.IsValid) { db.Entry(packageratelogparameters).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(packageratelogparameters)); }
public ActionResult Edit(PackageGroupDetail packagegroupdetail) { if (ModelState.IsValid) { db.Entry(packagegroupdetail).State = EntityState.Modified; db.SaveChanges(); return RedirectToAction("Index"); } return View(packagegroupdetail); }
public ActionResult Edit(Setup_for_Price setup_for_price) { if (ModelState.IsValid) { db.Entry(setup_for_price).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(setup_for_price)); }
public ActionResult Edit(InformationDetail informationdetail) { if (ModelState.IsValid) { db.Entry(informationdetail).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(informationdetail)); }
public ActionResult Edit(DIAL dial) { if (ModelState.IsValid) { db.Entry(dial).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(dial)); }
public ActionResult Edit(UserRegistration userregistration) { if (ModelState.IsValid) { db.Entry(userregistration).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(userregistration)); }
public ActionResult Edit(CustomersHistory customershistory) { if (ModelState.IsValid) { db.Entry(customershistory).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(customershistory)); }