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