public ActionResult Update(WorkExp a) { var content = db.WorkExps.Find(a.WorkExpID); content.Company = a.Company; content.Position = a.Position; content.StartDate = a.StartDate; content.EndDate = a.EndDate; db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Add(WorkExp a) { db.WorkExps.Add(a); db.SaveChanges(); return(RedirectToAction("Index")); }