diff options
Diffstat (limited to 'Codemerx/Gestor.Model/Model.API/UploadFile.cs')
| -rw-r--r-- | Codemerx/Gestor.Model/Model.API/UploadFile.cs | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/Codemerx/Gestor.Model/Model.API/UploadFile.cs b/Codemerx/Gestor.Model/Model.API/UploadFile.cs new file mode 100644 index 0000000..fe8699f --- /dev/null +++ b/Codemerx/Gestor.Model/Model.API/UploadFile.cs @@ -0,0 +1,61 @@ +using System;
+using System.Runtime.CompilerServices;
+
+namespace Gestor.Model.API
+{
+ public class UploadFile
+ {
+ private string _extensao;
+
+ public int Ano
+ {
+ get;
+ set;
+ }
+
+ public byte[] Arquivo
+ {
+ get;
+ set;
+ }
+
+ public string Extensao
+ {
+ get
+ {
+ return this._extensao;
+ }
+ set
+ {
+ string lower;
+ if (value != null)
+ {
+ string str = value.Trim();
+ if (str != null)
+ {
+ lower = str.ToLower();
+ }
+ else
+ {
+ lower = null;
+ }
+ }
+ else
+ {
+ lower = null;
+ }
+ this._extensao = lower;
+ }
+ }
+
+ public Guid Id
+ {
+ get;
+ set;
+ }
+
+ public UploadFile()
+ {
+ }
+ }
+}
\ No newline at end of file |