public IActionResult Edit(int id, AltProject AltProject) { db.Entry(AltProject).State = Microsoft.EntityFrameworkCore.EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); }
public IActionResult Add(AltProject AltProject) { db.AltProject.Add(AltProject); db.SaveChanges(); return(RedirectToAction("Index")); }