Exemplo n.º 1
0
        public async Task <ActionResult> DisabledAsync(int id, [FromForm] string description)
        {
            Domain.Posts.Post post   = Domain.Posts.Hub.GetPost(id);
            Domain.Resp       detail = await post.DisabledAsync(description);

            return(Pack(detail));
        }
Exemplo n.º 2
0
        public async Task <ActionResult> GetDetailAsync(int id)
        {
            Domain.Posts.Post post   = Domain.Posts.Hub.GetPost(id);
            Domain.Resp       detail = await post.GetDetail();

            return(Pack(detail));
        }