diff options
Diffstat (limited to 'Gestor.Model/Model.Domain.MalaDireta/ModeloMalaDireta.cs')
| -rw-r--r-- | Gestor.Model/Model.Domain.MalaDireta/ModeloMalaDireta.cs | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/Gestor.Model/Model.Domain.MalaDireta/ModeloMalaDireta.cs b/Gestor.Model/Model.Domain.MalaDireta/ModeloMalaDireta.cs deleted file mode 100644 index 1a3ce4a..0000000 --- a/Gestor.Model/Model.Domain.MalaDireta/ModeloMalaDireta.cs +++ /dev/null @@ -1,53 +0,0 @@ -using Gestor.Model.Domain.Generic;
-using Gestor.Model.Helper;
-using Gestor.Model.Resources;
-using Newtonsoft.Json;
-using System;
-using System.Collections.Generic;
-using System.Runtime.CompilerServices;
-
-namespace Gestor.Model.Domain.MalaDireta
-{
- public class ModeloMalaDireta : DomainBase, IDomain
- {
- public string Assunto
- {
- get;
- set;
- }
-
- public string Corpo
- {
- get;
- set;
- }
-
- [JsonIgnore]
- public Func<List<KeyValuePair<string, string>>> ValidationEvent
- {
- get
- {
- ModeloMalaDireta modeloMalaDiretum = this;
- return new Func<List<KeyValuePair<string, string>>>(modeloMalaDiretum.Validate);
- }
- }
-
- public ModeloMalaDireta()
- {
- }
-
- public List<KeyValuePair<string, string>> Validate()
- {
- List<KeyValuePair<string, string>> keyValuePairs = ValidationHelper.AddValue();
- if (string.IsNullOrWhiteSpace(this.Assunto))
- {
- keyValuePairs.AddValue<string, string>("Assunto", Messages.Obrigatorio, true);
- }
- if (string.IsNullOrWhiteSpace(this.Corpo))
- {
- keyValuePairs.AddValue<string, string>("Corpo", Messages.Obrigatorio, true);
- }
- return keyValuePairs;
- }
- }
-}
\ No newline at end of file |