blob: fa767a6526bc7f550511d43610334107066af117 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
using System;
using System.Collections.Generic;
using System.Text.RegularExpressions;
using Gestor.Model.Domain.Generic;
using Gestor.Model.Helper;
using Newtonsoft.Json;
namespace Gestor.Model.Domain.Seguros;
public class CoberturaPadrao : DomainBase, IDomain
{
private string _descricao;
public long IdRamo { get; set; }
public string Descricao
{
get
{
if (!string.IsNullOrWhiteSpace(_descricao))
{
_descricao = Regex.Replace(_descricao, "[\n\r]", "");
}
return _descricao?.ToUpper();
}
set
{
_descricao = value;
}
}
public bool Padrao { get; set; }
[JsonIgnore]
public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
public List<KeyValuePair<string, string>> Validate()
{
return ValidationHelper.AddValue();
}
}
|