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