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:
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
{
|
{
|
||||||
@@ -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
|
||||||
{
|
{
|
||||||
@@ -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
|
||||||
{
|
{
|
||||||
@@ -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
|
||||||
{
|
{
|
||||||
@@ -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
|
||||||
{
|
{
|
||||||
@@ -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
|
||||||
{
|
{
|
||||||
@@ -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
|
||||||
{
|
{
|
||||||
@@ -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
|
||||||
{
|
{
|
||||||
Reference in New Issue
Block a user