public void CreateUser(CraeteUserPanelCommand command)
        {
            var identityResult =
                _panelRepository.RegisterUserAsync(
                    new PanelUser(command.UserName, command.FirstName, command.LastName,
                                  command.NationalCode, command.MobilNumber, command.Email), command.Password).Result;

            if (identityResult == null)
            {
                throw new CustomException("Internal Server Error");
            }
            if (!identityResult.Succeeded)
            {
                throw new CustomException(identityResult.Errors.Aggregate("",
                                                                          (current, error) => current + error + "\n"));
            }
        }