コード例 #1
0
        public async Task <IActionResult> Edit(int id)
        {
            var editPostQuery = new EditPostQuery(id, User.GetIdentifier());
            var model         = await _dispatcher.Send(editPostQuery);

            return(View(model));
        }
コード例 #2
0
        public async Task <IActionResult> Edit(EditPostQuery query)
        {
            var result = await mediator.Send(query);

            return(View(result));
        }