Skip to content

Commit d3cf1d1

Browse files
Merge pull request #6 from yasinramazangok/main
chore: organize folder structure for improved maintainability
2 parents 6d0d54c + 926ad90 commit d3cf1d1

34 files changed

+341
-32
lines changed

Controllers/OrderDetailsController.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
using AutoMapper;
2-
using CoreXCrud.DTOs;
3-
using CoreXCrud.Models;
42
using CoreXCrud.Repositories;
53
using FluentValidation;
64
using Microsoft.AspNetCore.Mvc;
75
using Microsoft.AspNetCore.Authorization;
6+
using CoreXCrud.DTOs.OrderDetailDtos;
7+
using CoreXCrud.Entities;
88

99
namespace CoreXCrud.Controllers
1010
{

Controllers/OrdersController.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
using AutoMapper;
2-
using CoreXCrud.DTOs;
3-
using CoreXCrud.Models;
42
using CoreXCrud.Repositories;
53
using FluentValidation;
64
using Microsoft.AspNetCore.Mvc;
75
using Microsoft.AspNetCore.Authorization;
86
using Serilog;
7+
using CoreXCrud.DTOs.OrderDtos;
8+
using CoreXCrud.Entities;
99

1010
namespace CoreXCrud.Controllers
1111
{

Controllers/ProductsController.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using AutoMapper;
2-
using CoreXCrud.DTOs;
3-
using CoreXCrud.Models;
2+
using CoreXCrud.DTOs.ProductDtos;
3+
using CoreXCrud.Entities;
44
using CoreXCrud.Repositories;
55
using FluentValidation;
66
using Microsoft.AspNetCore.Authorization;

Controllers/UsersController.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
using AutoMapper;
2-
using CoreXCrud.DTOs;
3-
using CoreXCrud.Models;
42
using CoreXCrud.Repositories;
53
using FluentValidation;
64
using Microsoft.AspNetCore.Mvc;
75
using Microsoft.AspNetCore.Authorization;
6+
using CoreXCrud.DTOs.UserDtos;
7+
using CoreXCrud.Entities;
88

99
namespace CoreXCrud.Controllers
1010
{

CoreXCrud.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,8 @@
2727
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.6.2" />
2828
</ItemGroup>
2929

30+
<ItemGroup>
31+
<Folder Include="Models\" />
32+
</ItemGroup>
33+
3034
</Project>

CoreXCrud.sln

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.13.35931.197 d17.13
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CoreXCrud", "CoreXCrud.csproj", "{6639FDB0-ADA0-C137-BA06-3630D7B6CE03}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{6639FDB0-ADA0-C137-BA06-3630D7B6CE03}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{6639FDB0-ADA0-C137-BA06-3630D7B6CE03}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{6639FDB0-ADA0-C137-BA06-3630D7B6CE03}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{6639FDB0-ADA0-C137-BA06-3630D7B6CE03}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
GlobalSection(ExtensibilityGlobals) = postSolution
23+
SolutionGuid = {40E7B910-543D-4C6C-AC29-36B81E944A00}
24+
EndGlobalSection
25+
EndGlobal

DTOs/OrderDetailDto.cs renamed to DTOs/OrderDetailDtos/OrderDetailDto.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace CoreXCrud.DTOs
1+
namespace CoreXCrud.DTOs.OrderDetailDtos
22
{
33
/// <summary>
44
/// Sipariş Detay DTO Modeli

DTOs/OrderDto.cs renamed to DTOs/OrderDtos/OrderDto.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace CoreXCrud.DTOs
1+
namespace CoreXCrud.DTOs.OrderDtos
22
{
33
/// <summary>
44
/// Sipariş DTO Modeli

DTOs/ProductDto.cs renamed to DTOs/ProductDtos/ProductDto.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace CoreXCrud.DTOs
1+
namespace CoreXCrud.DTOs.ProductDtos
22
{
33
/// <summary>
44
/// Ürün DTO Modeli

DTOs/UserDto.cs renamed to DTOs/UserDtos/UserDto.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace CoreXCrud.DTOs
1+
namespace CoreXCrud.DTOs.UserDtos
22
{
33
/// <summary>
44
/// Kullanıcı DTO Modeli

0 commit comments

Comments
 (0)