public async Task <ActionResult> Delete(Guid userId) { var cmd = new Delete.Command(); cmd.WithUserId(userId); await _mediator.Send(cmd); return(Ok()); }
public async Task <ActionResult> Delete(Delete.Command cmd) { cmd.WithUserId(User.Identifier()); await _mediator.Send(cmd); await HttpContext.SignOutAsync(); return(Ok()); }
public async Task <object> Delete(Delete.Command cmd) { cmd.WithUserId(User.Identifier()); return(await _mediator.Send(cmd)); }