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