Move LayoutDto to its own file and update namespace

Separated LayoutDto from LayoutsController.cs into LayoutDto.cs and set its namespace to DbFirst.Application.Layouts for better code organization and maintainability.
This commit is contained in:
OlgunR
2026-04-20 16:51:57 +02:00
parent 3e78e2e2cf
commit c73c7e63fe
2 changed files with 10 additions and 8 deletions

View File

@@ -2,6 +2,7 @@ using System.Text;
using DbFirst.Application.Repositories;
using DbFirst.Domain.Entities;
using Microsoft.AspNetCore.Mvc;
using DbFirst.Application.Layouts;
namespace DbFirst.API.Controllers;
@@ -83,12 +84,4 @@ public class LayoutsController : ControllerBase
LayoutData = layoutData
};
}
public sealed class LayoutDto
{
public string LayoutType { get; set; } = string.Empty;
public string LayoutKey { get; set; } = string.Empty;
public string UserName { get; set; } = string.Empty;
public string LayoutData { get; set; } = string.Empty;
}
}