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:
@@ -2,6 +2,7 @@ using System.Text;
|
|||||||
using DbFirst.Application.Repositories;
|
using DbFirst.Application.Repositories;
|
||||||
using DbFirst.Domain.Entities;
|
using DbFirst.Domain.Entities;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
|
using DbFirst.Application.Layouts;
|
||||||
|
|
||||||
namespace DbFirst.API.Controllers;
|
namespace DbFirst.API.Controllers;
|
||||||
|
|
||||||
@@ -83,12 +84,4 @@ public class LayoutsController : ControllerBase
|
|||||||
LayoutData = layoutData
|
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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
9
DbFirst.Application/Layouts/LayoutDto.cs
Normal file
9
DbFirst.Application/Layouts/LayoutDto.cs
Normal file
@@ -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;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user