public async Task <IActionResult> Edit(int id) { var editPostQuery = new EditPostQuery(id, User.GetIdentifier()); var model = await _dispatcher.Send(editPostQuery); return(View(model)); }
public async Task <IActionResult> Edit(EditPostQuery query) { var result = await mediator.Send(query); return(View(result)); }