From c73c7e63feda1bebc9887203d1cc81396d8251e6 Mon Sep 17 00:00:00 2001 From: OlgunR Date: Mon, 20 Apr 2026 16:51:57 +0200 Subject: [PATCH] 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. --- DbFirst.API/Controllers/LayoutsController.cs | 9 +-------- DbFirst.Application/Layouts/LayoutDto.cs | 9 +++++++++ 2 files changed, 10 insertions(+), 8 deletions(-) create mode 100644 DbFirst.Application/Layouts/LayoutDto.cs diff --git a/DbFirst.API/Controllers/LayoutsController.cs b/DbFirst.API/Controllers/LayoutsController.cs index 7eb3d98..4fc3235 100644 --- a/DbFirst.API/Controllers/LayoutsController.cs +++ b/DbFirst.API/Controllers/LayoutsController.cs @@ -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; - } } diff --git a/DbFirst.Application/Layouts/LayoutDto.cs b/DbFirst.Application/Layouts/LayoutDto.cs new file mode 100644 index 0000000..b19a1a8 --- /dev/null +++ b/DbFirst.Application/Layouts/LayoutDto.cs @@ -0,0 +1,9 @@ +namespace DbFirst.Application.Layouts; + +public 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; +} \ No newline at end of file