public ActionResult FindExp(Experiences p) { Experiences tx = repos.Find(x => x.ID == p.ID); tx.Title = p.Title; tx.Subtitle = p.Subtitle; tx.Date = p.Date; tx.Explanation = p.Explanation; repos.TUpdate(tx); return(RedirectToAction("Index")); }
public ActionResult ExperienceGet(TblExperience p) { var get = repo.Find(x => x.ID == p.ID); get.Title = p.Title; get.SubTitle = p.SubTitle; get.Description = p.Description; get.Date = p.Date; repo.TUpdate(get); return(RedirectToAction("Index")); }