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)); }
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)); }