public ActionResult GetAttachments(int id) { ViewBag.Id = id; var attachments = AsyncHelper.RunSync(() => _postAppService.GetAttachments(id)); return(View(attachments)); }