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);
                }
            }
        }
Пример #2
0
 public void Update(WatchListTv watchListTvModel)
 {
     _watchListTvDal.Update(watchListTvModel);
 }
Пример #3
0
 public void Add(WatchListTv watchListTv)
 {
     _watchListTvDal.Add(watchListTv);
 }