Refactor code structure for improved readability and maintainability
This commit is contained in:
11
Dto/TemplateCategory/Add/AddTemplateCategoryDto.cs
Normal file
11
Dto/TemplateCategory/Add/AddTemplateCategoryDto.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Dto.TemplateCategory.Add
|
||||
{
|
||||
public class AddTemplateCategoryDto
|
||||
{
|
||||
public Guid ServiceId { get; set; }
|
||||
public string Name { get; set; } = string.Empty;
|
||||
public string? Description { get; set; }
|
||||
public bool IsActive { get; set; } = true;
|
||||
public string? Color { get; set; }
|
||||
}
|
||||
}
|
||||
11
Dto/TemplateCategory/Edit/EditTemplateCategoryDto.cs
Normal file
11
Dto/TemplateCategory/Edit/EditTemplateCategoryDto.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Dto.TemplateCategory.Edit
|
||||
{
|
||||
public class EditTemplateCategoryDto
|
||||
{
|
||||
public Guid ServiceId { get; set; }
|
||||
public string Name { get; set; } = string.Empty;
|
||||
public string? Description { get; set; }
|
||||
public bool IsActive { get; set; } = true;
|
||||
public string? Color { get; set; }
|
||||
}
|
||||
}
|
||||
11
Dto/TemplateCategory/Get/GetTemplateCategoryDetailsDto.cs
Normal file
11
Dto/TemplateCategory/Get/GetTemplateCategoryDetailsDto.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Dto.TemplateCategory.Get
|
||||
{
|
||||
public class GetTemplateCategoryDetailsDto : BaseDetailsDto
|
||||
{
|
||||
public Guid ServiceId { get; set; }
|
||||
public string Name { get; set; } = string.Empty;
|
||||
public string? Description { get; set; }
|
||||
public bool IsActive { get; set; }
|
||||
public string? Color { get; set; }
|
||||
}
|
||||
}
|
||||
11
Dto/TemplateCategory/Get/GetTemplateCategoryDto.cs
Normal file
11
Dto/TemplateCategory/Get/GetTemplateCategoryDto.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Dto.TemplateCategory.Get
|
||||
{
|
||||
public class GetTemplateCategoryDto : BaseDto
|
||||
{
|
||||
public Guid ServiceId { get; set; }
|
||||
public string Name { get; set; } = string.Empty;
|
||||
public string? Description { get; set; }
|
||||
public bool IsActive { get; set; }
|
||||
public string? Color { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user