public ProfileUser Update(UpdateProfileUserCompanyCommand command) { var profile = _repository.GetById(command.ProfileId); profile.UpdateProfile(command.Profile); _repository.Update(profile); if (Commit()) { return(profile); } return(null); }