Exemplo n.º 1
0
        public IActionResult ResetPasswordPartial(EntityId <string> idModel = null)
        {
            UserResetPasswordInput input = null;

            if (idModel == null)
            {
                input = new UserResetPasswordInput();
            }
            else
            {
                input = userService.GetResetPasswordInputById(idModel);
            }
            return(PartialView(input));
        }
Exemplo n.º 2
0
        public UserResetPasswordInput GetResetPasswordInputById(EntityId <string> entityId)
        {
            WebCoreUser entity = userRepository.GetById(entityId.Id);

            UserResetPasswordInput updateInput = new UserResetPasswordInput();

            if (entity == null)
            {
                return(null);
            }

            updateInput = mapper.Map <UserResetPasswordInput>(entity);

            return(updateInput);
        }