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