UserPreferenceRepository.Update method
Updates or deletes a user preference of the current user.
public SaveResponse Update(IUnitOfWork uow, UserPreferenceUpdateRequest request)
| parameter | description |
|---|---|
| uow | The unit of work. |
| request | The update request. |
Return Value
The save response.
Exceptions
| exception | condition |
|---|---|
| ValidationError | The current user has no identifier, e.g. is not logged in, so the preference would be no one's. |
See Also
- class SaveResponse
- interface IUnitOfWork
- class UserPreferenceUpdateRequest
- class UserPreferenceRepository