public ActionResult DeleteConfirmed(int id)
        {
            SalesNotPayment salesNotPayment = db.SalesNotPayment.Find(id);

            db.SalesNotPayment.Remove(salesNotPayment);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "ID,RegistrationDate,일자,송장번호,수취인명,제품명,수량,공급가,택배비,주문구분,주문번호,상품코드")] SalesNotPayment salesNotPayment)
 {
     if (ModelState.IsValid)
     {
         db.Entry(salesNotPayment).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(salesNotPayment));
 }
        // GET: SalesNotPayments/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            SalesNotPayment salesNotPayment = db.SalesNotPayment.Find(id);

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