protected void rptTvSeries_ItemCommand(object source, RepeaterCommandEventArgs e) { WatchListTv watchListTv = new WatchListTv(); int id = Convert.ToInt32(e.CommandArgument); if (e.CommandName == "Add") { if (Session["Id"] == null) { return; } else { var tvModel = _tvManager.Get(id); watchListTv.TvSeriesId = tvModel.Id; watchListTv.UserId = Convert.ToInt32(Session["Id"]); watchListTv.IsActive = true; _watchListTvManager.Add(watchListTv); } } }
public void Update(WatchListTv watchListTvModel) { _watchListTvDal.Update(watchListTvModel); }
public void Add(WatchListTv watchListTv) { _watchListTvDal.Add(watchListTv); }