Refactor DTOs: make public, add properties, clean up
Refactored DTO classes by removing unnecessary using statements and internal wrappers, making them public, and adding explicit properties with default values. Clarified namespaces and improved accessibility for use in API contracts or service layers. Added CatalogUpdateProcedure to CatalogWriteDto to specify update operation type.
This commit is contained in:
@@ -1,12 +1,10 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using DbFirst.Domain;
|
||||
|
||||
namespace DbFirst.Contracts.Catalogs
|
||||
namespace DbFirst.Contracts.Catalogs;
|
||||
|
||||
public class CatalogWriteDto
|
||||
{
|
||||
internal class CatalogWriteDto
|
||||
{
|
||||
}
|
||||
}
|
||||
public string CatTitle { get; set; } = string.Empty;
|
||||
public string CatString { get; set; } = string.Empty;
|
||||
public CatalogUpdateProcedure UpdateProcedure { get; set; } = CatalogUpdateProcedure.Update;
|
||||
}
|
||||
Reference in New Issue
Block a user