Beispiel #1
0
        public ActionResult AddHomePageVideo(HomePageVideo HomePageVideo)
        {
            if (HomePageVideoRepo.Insert(HomePageVideo))
            {
                Notify("Success", "Successfully added", "Product Added Successfully", false, false, true);
            }
            else
            {
                Notify("Error", "Technical Error", "Unable to add product due to technical issues", false, false, true);
            }

            return(RedirectToAction("Index", "HomePageVideo"));
        }
Beispiel #2
0
 public bool Update(HomePageVideo HomePageVideo)
 {
     db.values.Add("@ID", HomePageVideo.ID.ToString());
     return(DBHelper.Update(HomePageVideo, "Where ID = @ID", db.values));
 }
Beispiel #3
0
 public bool Insert(HomePageVideo HomePageVideo)
 {
     return(DBHelper.Insert(HomePageVideo));
 }
 public void Update(HomePageVideo homePageVideo)
 {
     _db.homePageVideos.Attach(homePageVideo);
     _db.Entry(homePageVideo).State = EntityState.Modified;
     _db.SaveChanges();
 }