From 1f4e14b2e973ee7de337fd4866d9a5ceff5cb6d1 Mon Sep 17 00:00:00 2001 From: Lucas Faria Mendes Date: Mon, 30 Mar 2026 10:38:18 -0300 Subject: chore: location --- .../Model.Domain.Seguros/CoberturaPadrao.cs | 67 ++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 Codemerx/Gestor.Model/Model.Domain.Seguros/CoberturaPadrao.cs (limited to 'Codemerx/Gestor.Model/Model.Domain.Seguros/CoberturaPadrao.cs') diff --git a/Codemerx/Gestor.Model/Model.Domain.Seguros/CoberturaPadrao.cs b/Codemerx/Gestor.Model/Model.Domain.Seguros/CoberturaPadrao.cs new file mode 100644 index 0000000..81a4e23 --- /dev/null +++ b/Codemerx/Gestor.Model/Model.Domain.Seguros/CoberturaPadrao.cs @@ -0,0 +1,67 @@ +using Gestor.Model.Domain.Generic; +using Gestor.Model.Helper; +using Newtonsoft.Json; +using System; +using System.Collections.Generic; +using System.Runtime.CompilerServices; +using System.Text.RegularExpressions; + +namespace Gestor.Model.Domain.Seguros +{ + public class CoberturaPadrao : DomainBase, IDomain + { + private string _descricao; + + public string Descricao + { + get + { + if (!string.IsNullOrWhiteSpace(this._descricao)) + { + this._descricao = Regex.Replace(this._descricao, "[\n\r]", ""); + } + string str = this._descricao; + if (str != null) + { + return str.ToUpper(); + } + return null; + } + set + { + this._descricao = value; + } + } + + public long IdRamo + { + get; + set; + } + + public bool Padrao + { + get; + set; + } + + [JsonIgnore] + public Func>> ValidationEvent + { + get + { + CoberturaPadrao coberturaPadrao = this; + return new Func>>(coberturaPadrao.Validate); + } + } + + public CoberturaPadrao() + { + } + + public List> Validate() + { + return ValidationHelper.AddValue(); + } + } +} \ No newline at end of file -- cgit v1.2.3