Example #1
0
        public async Task <ActionResult> GetDetailAsync(int id)
        {
            Domain.Segments.Segment segment = Domain.Segments.Hub.GetSegment(id);
            Domain.Resp             resp    = await segment.GetDetail();

            return(Pack(resp));
        }
Example #2
0
        public async Task <ActionResult> Liked(int id)
        {
            Domain.Segments.Segment segment = Domain.Segments.Hub.GetSegment(id);
            Domain.Resp             resp    = await segment.Liked();

            return(Pack(resp));
        }
        public async Task <ActionResult> DisabledAsync(int id, [FromForm] string description)
        {
            Domain.Segments.Segment segment = Domain.Segments.Hub.GetSegment(id);
            Domain.Resp             detail  = await segment.DisabledAsync(description);

            return(Pack(detail));
        }