Beispiel #1
0
        public ActionResult DeleteConfirmed(int id)
        {
            SalesMarket salesMarket = db.SalesMarket.Find(id);

            db.SalesMarket.Remove(salesMarket);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Beispiel #2
0
 public ActionResult Edit([Bind(Include = "ID,Market,RegistrationDate,일자,송장번호,수취인명,제품명,수량,공급가,택배비,주문구분,주문번호,상품코드")] SalesMarket salesMarket)
 {
     if (ModelState.IsValid)
     {
         db.Entry(salesMarket).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(salesMarket));
 }
Beispiel #3
0
        public ActionResult Create([Bind(Include = "ID,Market,RegistrationDate,일자,송장번호,수취인명,제품명,수량,공급가,택배비,주문구분,주문번호,상품코드")] SalesMarket salesMarket)
        {
            if (ModelState.IsValid)
            {
                db.SalesMarket.Add(salesMarket);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(salesMarket));
        }
Beispiel #4
0
        // GET: SalesMarkets2/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            SalesMarket salesMarket = db.SalesMarket.Find(id);

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