Beispiel #1
0
        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"));
        }
Beispiel #2
0
        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"));
        }