Exemple #1
0
        public ActionResult DeleteConfirmed(int id)
        {
            AdditionalSkuBasic additionalskubasic = db.AdditionalSkuBasics.Find(id);

            db.AdditionalSkuBasics.Remove(additionalskubasic);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Exemple #2
0
 public ActionResult Edit(AdditionalSkuBasic additionalskubasic)
 {
     if (ModelState.IsValid)
     {
         db.Entry(additionalskubasic).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(additionalskubasic));
 }
Exemple #3
0
        public ActionResult Create(AdditionalSkuBasic additionalskubasic)
        {
            if (ModelState.IsValid)
            {
                db.AdditionalSkuBasics.Add(additionalskubasic);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(additionalskubasic));
        }
Exemple #4
0
        //
        // GET: /AdditionalSku/Delete/5

        public ActionResult Delete(int id)
        {
            AdditionalSkuBasic additionalskubasic = db.AdditionalSkuBasics.Find(id);

            return(View(additionalskubasic));
        }
Exemple #5
0
        //
        // GET: /AdditionalSku/Details/5

        public ViewResult Details(int id)
        {
            AdditionalSkuBasic additionalskubasic = db.AdditionalSkuBasics.Find(id);

            return(View(additionalskubasic));
        }