Ejemplo n.º 1
0
        public async Task<IActionResult> DeleteUser(string userId)
        {
            var user = await _mediator.SendAsync(new UserQuery { UserId = userId });
            var viewModel = new DeleteUserModel
            {
                UserId = userId,
                UserName = user.UserName,
            };

            return View(viewModel);
        }
Ejemplo n.º 2
0
        public IActionResult DeleteUser(string userId)
        {
            var user = _mediator.Send(new UserQuery { UserId = userId });

            var viewModel = new DeleteUserModel()
            {
                UserId = userId,
                UserName = user.UserName,
            };
            return View(viewModel);
        }