Esempio n. 1
0
        public ActionResult Change(int id)
        {
            Broadcast cast   = BroadcastBll.GetById(id);
            Status    status = cast.Status;

            cast.UpdateTime = DateTime.Now;
            cast.Status     = status == Status.Subscribed ? Status.Subscribing : Status.Subscribed;
            bool b = BroadcastBll.UpdateEntitySaved(cast);

            return(ResultData(null, b, status == Status.Subscribed ? "订阅成功" : "取消订阅成功!"));
        }
Esempio n. 2
0
 public ActionResult Get(int id) => ResultData(BroadcastBll.GetById(id));