public ActionResult Create(SolutionHelperCode solutionHelperCode) { db.SolutionHelperCode.Add(solutionHelperCode); db.SaveChanges(); return(RedirectToAction("Index", "Solution", new { Id = solutionHelperCode.SolutionId })); }
public ActionResult Delete(int?id) { SolutionHelperCode solutionHelperCode = db.SolutionHelperCode.Find(id); db.SolutionHelperCode.Remove(solutionHelperCode); db.SaveChanges(); return(RedirectToAction("Index", "Solution", new { Id = solutionHelperCode.SolutionId })); }