From 350765247adf74e179a4c869ed911ac28bc652f5 Mon Sep 17 00:00:00 2001
From: esantangelo <enzo020895@gmail.com>
Date: Tue, 8 Dec 2020 22:54:43 -0300
Subject: [PATCH] add date column to activity entity

---
 Tsi1.Api/Tsi1.BusinessLayer/Dtos/ActivityCreateDto.cs   | 1 +
 Tsi1.Api/Tsi1.BusinessLayer/Dtos/ActivityDto.cs         | 2 ++
 Tsi1.Api/Tsi1.BusinessLayer/Dtos/ActivityModifyDto.cs   | 2 ++
 Tsi1.Api/Tsi1.BusinessLayer/Dtos/EvaluationCreateDto.cs | 2 ++
 Tsi1.Api/Tsi1.DataLayer/Entities/Activity.cs            | 2 ++
 5 files changed, 9 insertions(+)

diff --git a/Tsi1.Api/Tsi1.BusinessLayer/Dtos/ActivityCreateDto.cs b/Tsi1.Api/Tsi1.BusinessLayer/Dtos/ActivityCreateDto.cs
index c6d0437..7515476 100644
--- a/Tsi1.Api/Tsi1.BusinessLayer/Dtos/ActivityCreateDto.cs
+++ b/Tsi1.Api/Tsi1.BusinessLayer/Dtos/ActivityCreateDto.cs
@@ -9,6 +9,7 @@ namespace Tsi1.BusinessLayer.Dtos
         public string Name { get; set; }
 
         public bool IsVideoConference { get; set; }
+        public DateTime Date { get; set; }
 
         public int CourseId { get; set; }
 
diff --git a/Tsi1.Api/Tsi1.BusinessLayer/Dtos/ActivityDto.cs b/Tsi1.Api/Tsi1.BusinessLayer/Dtos/ActivityDto.cs
index ce33fcc..5d5adbb 100644
--- a/Tsi1.Api/Tsi1.BusinessLayer/Dtos/ActivityDto.cs
+++ b/Tsi1.Api/Tsi1.BusinessLayer/Dtos/ActivityDto.cs
@@ -8,6 +8,8 @@ namespace Tsi1.BusinessLayer.Dtos
     {
         public int Id { get; set; }
 
+        public DateTime Date { get; set; }
+
         public string Name { get; set; }
 
         public bool IsVideoConference { get; set; }
diff --git a/Tsi1.Api/Tsi1.BusinessLayer/Dtos/ActivityModifyDto.cs b/Tsi1.Api/Tsi1.BusinessLayer/Dtos/ActivityModifyDto.cs
index aa92abe..f509a74 100644
--- a/Tsi1.Api/Tsi1.BusinessLayer/Dtos/ActivityModifyDto.cs
+++ b/Tsi1.Api/Tsi1.BusinessLayer/Dtos/ActivityModifyDto.cs
@@ -8,6 +8,8 @@ namespace Tsi1.BusinessLayer.Dtos
     {
         public string Name { get; set; }
 
+        public DateTime Date { get; set; }
+
         public bool IsVideoConference { get; set; }
 
         public EvaluationModifyDto Evaluation { get; set; }
diff --git a/Tsi1.Api/Tsi1.BusinessLayer/Dtos/EvaluationCreateDto.cs b/Tsi1.Api/Tsi1.BusinessLayer/Dtos/EvaluationCreateDto.cs
index a2f6abc..cccc2aa 100644
--- a/Tsi1.Api/Tsi1.BusinessLayer/Dtos/EvaluationCreateDto.cs
+++ b/Tsi1.Api/Tsi1.BusinessLayer/Dtos/EvaluationCreateDto.cs
@@ -1,6 +1,7 @@
 using System;
 using System.Collections.Generic;
 using System.Text;
+using System.Text.Json.Serialization;
 
 namespace Tsi1.BusinessLayer.Dtos
 {
@@ -8,6 +9,7 @@ namespace Tsi1.BusinessLayer.Dtos
     {
         public int EvaluationTypeId { get; set; }
 
+        [JsonIgnore]
         public bool IsCompleted { get; set; }
     }
 }
diff --git a/Tsi1.Api/Tsi1.DataLayer/Entities/Activity.cs b/Tsi1.Api/Tsi1.DataLayer/Entities/Activity.cs
index 2dcbb58..afb3b57 100644
--- a/Tsi1.Api/Tsi1.DataLayer/Entities/Activity.cs
+++ b/Tsi1.Api/Tsi1.DataLayer/Entities/Activity.cs
@@ -15,6 +15,8 @@ namespace Tsi1.DataLayer.Entities
 
         public string Name { get; set; }
 
+        public DateTime Date { get; set; }
+
         public bool IsVideoConference { get; set; }
 
         public int? EvaluationId { get; set; }
-- 
GitLab