Created
April 3, 2020 01:19
-
-
Save rafaeldalsenter/521b9efc040f7720cf6f542d8f0f0d69 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public string Title { get; private set; } | |
| ... | |
| public void AddTitle(string title) | |
| { | |
| if (title.IsNullOrWhiteSpace()) | |
| { | |
| AddError("Faltou preencher o valor 'title'"); | |
| return; | |
| } | |
| Title = title; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment