Пример #1
0
        public async Task <ActionResult> Delete(Guid userId)
        {
            var cmd = new Delete.Command();

            cmd.WithUserId(userId);

            await _mediator.Send(cmd);

            return(Ok());
        }
Пример #2
0
        public async Task <ActionResult> Delete(Delete.Command cmd)
        {
            cmd.WithUserId(User.Identifier());

            await _mediator.Send(cmd);

            await HttpContext.SignOutAsync();

            return(Ok());
        }
Пример #3
0
        public async Task <object> Delete(Delete.Command cmd)
        {
            cmd.WithUserId(User.Identifier());

            return(await _mediator.Send(cmd));
        }