From bab5243108340b1dddf81bd02fb4d35b21bfbfe7 Mon Sep 17 00:00:00 2001 From: "ashutosh.nehete" Date: Thu, 15 May 2025 12:51:23 +0530 Subject: [PATCH] Created an API to create the Contact category --- Marco.Pms.Model/Dtos/Master/CreateContactTagDto.cs | 1 + Marco.Pms.Model/Dtos/Master/UpdateContactTagDto.cs | 1 + Marco.Pms.Model/Mapper/DirectoryMapper.cs | 3 +++ Marco.Pms.Model/ViewModels/Master/ContactTagVM.cs | 1 + 4 files changed, 6 insertions(+) diff --git a/Marco.Pms.Model/Dtos/Master/CreateContactTagDto.cs b/Marco.Pms.Model/Dtos/Master/CreateContactTagDto.cs index ad91ca7..2fec4ae 100644 --- a/Marco.Pms.Model/Dtos/Master/CreateContactTagDto.cs +++ b/Marco.Pms.Model/Dtos/Master/CreateContactTagDto.cs @@ -3,5 +3,6 @@ public class CreateContactTagDto { public string? Name { get; set; } + public string? Description { get; set; } } } diff --git a/Marco.Pms.Model/Dtos/Master/UpdateContactTagDto.cs b/Marco.Pms.Model/Dtos/Master/UpdateContactTagDto.cs index 0406a6c..e97ece6 100644 --- a/Marco.Pms.Model/Dtos/Master/UpdateContactTagDto.cs +++ b/Marco.Pms.Model/Dtos/Master/UpdateContactTagDto.cs @@ -4,5 +4,6 @@ { public Guid Id { get; set; } public string? Name { get; set; } + public string? Description { get; set; } } } diff --git a/Marco.Pms.Model/Mapper/DirectoryMapper.cs b/Marco.Pms.Model/Mapper/DirectoryMapper.cs index b9e9f86..82e703f 100644 --- a/Marco.Pms.Model/Mapper/DirectoryMapper.cs +++ b/Marco.Pms.Model/Mapper/DirectoryMapper.cs @@ -125,6 +125,7 @@ namespace Marco.Pms.Model.Mapper return new ContactTagMaster { Name = createContactTagDto.Name ?? string.Empty, + Description = createContactTagDto.Description ?? string.Empty, TenantId = tenantId }; } @@ -134,6 +135,7 @@ namespace Marco.Pms.Model.Mapper { Id = updateContactTagDto.Id, Name = updateContactTagDto.Name ?? string.Empty, + Description = updateContactTagDto.Description ?? string.Empty, TenantId = tenantId }; } @@ -142,6 +144,7 @@ namespace Marco.Pms.Model.Mapper return new ContactTagVM { Id = contactTag.Id, + Description = contactTag.Description ?? string.Empty, Name = contactTag.Name ?? string.Empty, }; } diff --git a/Marco.Pms.Model/ViewModels/Master/ContactTagVM.cs b/Marco.Pms.Model/ViewModels/Master/ContactTagVM.cs index 2cb6f8a..321b669 100644 --- a/Marco.Pms.Model/ViewModels/Master/ContactTagVM.cs +++ b/Marco.Pms.Model/ViewModels/Master/ContactTagVM.cs @@ -4,5 +4,6 @@ { public Guid Id { get; set; } public string? Name { get; set; } + public string? Description { get; set; } } }