From 31c214d9559d2e3a9efef52331b359f5c61bf38a Mon Sep 17 00:00:00 2001 From: Polianin Nikita Date: Sun, 21 Jan 2024 23:55:47 +0300 Subject: [PATCH] refactor: move files --- .../UpdateProfessorCommand.cs | 2 +- .../UpdateProfessorCommandHandler.cs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) rename Application/Cqrs/Professor/Commands/{UpdateTypeOfOccupation => UpdateProfessor}/UpdateProfessorCommand.cs (88%) rename Application/Cqrs/Professor/Commands/{UpdateTypeOfOccupation => UpdateProfessor}/UpdateProfessorCommandHandler.cs (92%) diff --git a/Application/Cqrs/Professor/Commands/UpdateTypeOfOccupation/UpdateProfessorCommand.cs b/Application/Cqrs/Professor/Commands/UpdateProfessor/UpdateProfessorCommand.cs similarity index 88% rename from Application/Cqrs/Professor/Commands/UpdateTypeOfOccupation/UpdateProfessorCommand.cs rename to Application/Cqrs/Professor/Commands/UpdateProfessor/UpdateProfessorCommand.cs index 0029701..f0789bc 100644 --- a/Application/Cqrs/Professor/Commands/UpdateTypeOfOccupation/UpdateProfessorCommand.cs +++ b/Application/Cqrs/Professor/Commands/UpdateProfessor/UpdateProfessorCommand.cs @@ -1,6 +1,6 @@ using MediatR; -namespace Mirea.Api.DataAccess.Application.Cqrs.Professor.Commands.UpdateTypeOfOccupation; +namespace Mirea.Api.DataAccess.Application.Cqrs.Professor.Commands.UpdateProfessor; public class UpdateProfessorCommand : IRequest { diff --git a/Application/Cqrs/Professor/Commands/UpdateTypeOfOccupation/UpdateProfessorCommandHandler.cs b/Application/Cqrs/Professor/Commands/UpdateProfessor/UpdateProfessorCommandHandler.cs similarity index 92% rename from Application/Cqrs/Professor/Commands/UpdateTypeOfOccupation/UpdateProfessorCommandHandler.cs rename to Application/Cqrs/Professor/Commands/UpdateProfessor/UpdateProfessorCommandHandler.cs index 1d04355..48a5410 100644 --- a/Application/Cqrs/Professor/Commands/UpdateTypeOfOccupation/UpdateProfessorCommandHandler.cs +++ b/Application/Cqrs/Professor/Commands/UpdateProfessor/UpdateProfessorCommandHandler.cs @@ -1,11 +1,11 @@ -using MediatR; +using System.Threading; +using System.Threading.Tasks; +using MediatR; using Microsoft.EntityFrameworkCore; using Mirea.Api.DataAccess.Application.Common.Exceptions; using Mirea.Api.DataAccess.Application.Interfaces.DbContexts.Schedule; -using System.Threading; -using System.Threading.Tasks; -namespace Mirea.Api.DataAccess.Application.Cqrs.Professor.Commands.UpdateTypeOfOccupation; +namespace Mirea.Api.DataAccess.Application.Cqrs.Professor.Commands.UpdateProfessor; public class UpdateProfessorCommandHandler(IProfessorDbContext dbContext) : IRequestHandler {