public ActionResult Add(Carousel model) { model.CreateBy = CurrentUser.Id; model.CreateDate = DateTime.Now; bllSession.ICarouselBLL.Insert(model); return Redirect("/Admin/Carousel/Index"); }
public ActionResult Edit(Carousel model) { var old = bllSession.ICarouselBLL.GetEntity(model.Id); old.Href = model.Href; old.ImagePath = model.ImagePath; old.IsDelete = model.IsDelete; old.IsShow = model.IsShow; old.Top = model.Top; old.Description = model.Description; bllSession.ICarouselBLL.Update(old); return Redirect("/Admin/Carousel/Index"); }