Refactor procedure classes into feature-based namespaces

Moved Insert, Update, and Delete procedure records for Action, Profile, and Result entities from common namespaces to feature-specific namespaces. Updated all relevant using directives and controller references. No logic changes; this improves code organization and maintainability.
This commit is contained in:
2026-01-16 09:34:41 +01:00
parent 82de285891
commit f6b95331e1
13 changed files with 31 additions and 9 deletions

View File

@@ -3,6 +3,7 @@ using Microsoft.AspNetCore.Mvc;
using ReC.API.Extensions; using ReC.API.Extensions;
using ReC.API.Models; using ReC.API.Models;
using ReC.Application.Common.Procedures.DeleteProcedure; using ReC.Application.Common.Procedures.DeleteProcedure;
using ReC.Application.OutResults.Commands;
using ReC.Application.OutResults.Queries; using ReC.Application.OutResults.Queries;
namespace ReC.API.Controllers; namespace ReC.API.Controllers;

View File

@@ -2,7 +2,7 @@
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using ReC.API.Extensions; using ReC.API.Extensions;
using ReC.API.Models; using ReC.API.Models;
using ReC.Application.Common.Procedures.InsertProcedure; using ReC.Application.OutResults.Commands;
using ReC.Application.OutResults.Queries; using ReC.Application.OutResults.Queries;
namespace ReC.API.Controllers; namespace ReC.API.Controllers;

View File

@@ -2,6 +2,8 @@
using MediatR; using MediatR;
using Microsoft.Data.SqlClient; using Microsoft.Data.SqlClient;
using ReC.Application.Common.Exceptions; using ReC.Application.Common.Exceptions;
using ReC.Application.OutResults.Commands;
using ReC.Application.Profile.Commands;
namespace ReC.Application.Common.Procedures.InsertProcedure; namespace ReC.Application.Common.Procedures.InsertProcedure;

View File

@@ -2,6 +2,9 @@ using DigitalData.Core.Abstraction.Application.Repository;
using MediatR; using MediatR;
using Microsoft.Data.SqlClient; using Microsoft.Data.SqlClient;
using ReC.Application.Common.Exceptions; using ReC.Application.Common.Exceptions;
using ReC.Application.OutResults.Commands;
using ReC.Application.Profile.Commands;
using ReC.Application.RecActions.Commands;
namespace ReC.Application.Common.Procedures.UpdateProcedure; namespace ReC.Application.Common.Procedures.UpdateProcedure;

View File

@@ -1,4 +1,6 @@
namespace ReC.Application.Common.Procedures.DeleteProcedure; using ReC.Application.Common.Procedures.DeleteProcedure;
namespace ReC.Application.OutResults.Commands;
public record DeleteResultProcedure : IDeleteProcedure public record DeleteResultProcedure : IDeleteProcedure
{ {

View File

@@ -1,4 +1,6 @@
namespace ReC.Application.Common.Procedures.InsertProcedure; using ReC.Application.Common.Procedures.InsertProcedure;
namespace ReC.Application.OutResults.Commands;
public record InsertResultProcedure : IInsertProcedure public record InsertResultProcedure : IInsertProcedure
{ {

View File

@@ -1,4 +1,6 @@
namespace ReC.Application.Common.Procedures.UpdateProcedure; using ReC.Application.Common.Procedures.UpdateProcedure;
namespace ReC.Application.OutResults.Commands;
public record UpdateResultProcedure : IUpdateProcedure public record UpdateResultProcedure : IUpdateProcedure
{ {

View File

@@ -1,4 +1,6 @@
namespace ReC.Application.Common.Procedures.DeleteProcedure; using ReC.Application.Common.Procedures.DeleteProcedure;
namespace ReC.Application.Profile.Commands;
public record DeleteProfileProcedure : IDeleteProcedure public record DeleteProfileProcedure : IDeleteProcedure
{ {

View File

@@ -1,4 +1,6 @@
namespace ReC.Application.Common.Procedures.InsertProcedure; using ReC.Application.Common.Procedures.InsertProcedure;
namespace ReC.Application.Profile.Commands;
public record InsertProfileProcedure : IInsertProcedure public record InsertProfileProcedure : IInsertProcedure
{ {

View File

@@ -1,4 +1,6 @@
namespace ReC.Application.Common.Procedures.UpdateProcedure; using ReC.Application.Common.Procedures.UpdateProcedure;
namespace ReC.Application.Profile.Commands;
public record UpdateProfileProcedure : IUpdateProcedure public record UpdateProfileProcedure : IUpdateProcedure
{ {

View File

@@ -1,4 +1,6 @@
namespace ReC.Application.Common.Procedures.DeleteProcedure; using ReC.Application.Common.Procedures.DeleteProcedure;
namespace ReC.Application.RecActions.Commands;
public record DeleteActionProcedure : IDeleteProcedure public record DeleteActionProcedure : IDeleteProcedure
{ {

View File

@@ -1,4 +1,6 @@
namespace ReC.Application.Common.Procedures.UpdateProcedure; using ReC.Application.Common.Procedures.UpdateProcedure;
namespace ReC.Application.RecActions.Commands;
public record UpdateActionProcedure : IUpdateProcedure public record UpdateActionProcedure : IUpdateProcedure
{ {