Refactor: move RecActionViewQuery and MappingProfile
Moved ReadRecActionViewQuery and MappingProfile from RecActionViews to RecActions namespace. Updated all references and using directives accordingly. This organizational change consolidates related queries and mapping profiles for improved clarity and maintainability.
This commit is contained in:
@@ -3,7 +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.RecActions.Commands;
|
using ReC.Application.RecActions.Commands;
|
||||||
using ReC.Application.RecActionViews.Queries;
|
using ReC.Application.RecActions.Queries;
|
||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
|
|
||||||
namespace ReC.API.Controllers;
|
namespace ReC.API.Controllers;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
using MediatR;
|
using MediatR;
|
||||||
using ReC.Application.RecActionViews.Queries;
|
using ReC.Application.RecActions.Queries;
|
||||||
using ReC.Domain.Constants;
|
using ReC.Domain.Constants;
|
||||||
|
|
||||||
namespace ReC.Application.RecActions.Commands;
|
namespace ReC.Application.RecActions.Commands;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
using ReC.Application.Common.Dto;
|
using ReC.Application.Common.Dto;
|
||||||
using ReC.Application.RecActions.Commands;
|
using ReC.Application.RecActions.Commands;
|
||||||
|
|
||||||
namespace ReC.Application.RecActionViews;
|
namespace ReC.Application.RecActions;
|
||||||
|
|
||||||
// TODO: update to inject AddedWho from the current host/user contex
|
// TODO: update to inject AddedWho from the current host/user contex
|
||||||
public class MappingProfile : AutoMapper.Profile
|
public class MappingProfile : AutoMapper.Profile
|
||||||
@@ -6,7 +6,7 @@ using DigitalData.Core.Exceptions;
|
|||||||
using ReC.Application.Common.Dto;
|
using ReC.Application.Common.Dto;
|
||||||
using ReC.Domain.Views;
|
using ReC.Domain.Views;
|
||||||
|
|
||||||
namespace ReC.Application.RecActionViews.Queries;
|
namespace ReC.Application.RecActions.Queries;
|
||||||
|
|
||||||
public record ReadRecActionViewQuery : IRequest<IEnumerable<RecActionViewDto>>
|
public record ReadRecActionViewQuery : IRequest<IEnumerable<RecActionViewDto>>
|
||||||
{
|
{
|
||||||
Reference in New Issue
Block a user