public async Task <ActionResult> Update([FromBody] UpdateWebinarCommand updatePostCommand) { await _mediator.Send(updatePostCommand); return(NoContent()); }
public async Task <ResponseFromApi <int> > UpdateWebinar(WebinarBlazorVM webinarDetailViewModel) { try { UpdateWebinarCommand updateWebinarCommand = _mapper.Map <UpdateWebinarCommand>(webinarDetailViewModel); await _client.UpdateWebinarAsync(updateWebinarCommand); return(new ResponseFromApi <int>() { Success = true }); } catch (ApiException ex) { return(ex.ConvertApiExceptions()); } }