public void UpdateUserPanelInfo(UpdateUserPanelCommand command) { var user = _panelRepository.FindUser(command.UserId).Result; if (user == null) { throw new CustomException("کاربر یافت نشد"); } _panelRepository.UpdateUserInfo(user.UserName, command.FirstName, command.LastName, command.NationalCode, command.MobileNumber, command.Email); }