Added CatalogUpdateProcedure enum to domain. CatalogWriteDto now includes UpdateProcedure property in both application and BlazorWasm layers. Catalogs.razor form allows users to choose between PRTBMY_CATALOG_UPDATE and PRTBMY_CATALOG_SAVE when editing. Repository, service, and handler layers updated to pass and use the selected procedure. Default remains Update. Updated comments and TODOs for clarity and future refactoring.
11 lines
295 B
C#
11 lines
295 B
C#
using DbFirst.Domain;
|
|
|
|
namespace DbFirst.Application.Catalogs;
|
|
|
|
public class CatalogWriteDto
|
|
{
|
|
public string CatTitle { get; set; } = null!;
|
|
public string CatString { get; set; } = null!;
|
|
public CatalogUpdateProcedure UpdateProcedure { get; set; } = CatalogUpdateProcedure.Update;
|
|
}
|