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