public async Task <ActionResult> Update(int PresentationId, UpdatePresentationCommand command) { if (PresentationId != command.PresentationId) { return(BadRequest()); } await Mediator.Send(command); return(NoContent()); }
public async Task <ActionResult> UpdatePresentation(UpdatePresentationCommand command) { return(Ok(await Mediator.Send(command))); }