Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
H
HIAST-Clinics
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
almohanad.hafez
HIAST-Clinics
Commits
c4245ed6
Commit
c4245ed6
authored
Aug 19, 2024
by
Almouhannad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(B) Fix Create employee folder
parent
73165d66
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
5 deletions
+6
-5
Application.csproj
Clinics.Backend/Application/Application.csproj
+1
-0
CreateEmployeeCommand.cs
...mployees/Commands/CreateEmployee/CreateEmployeeCommand.cs
+1
-1
CreateEmployeeCommandHandler.cs
...s/Commands/CreateEmployee/CreateEmployeeCommandHandler.cs
+2
-2
CreateEmployeeCommandValidator.cs
...Commands/CreateEmployee/CreateEmployeeCommandValidator.cs
+1
-1
EmployeesController.cs
...s.Backend/Presentation/Controllers/EmployeesController.cs
+1
-1
No files found.
Clinics.Backend/Application/Application.csproj
View file @
c4245ed6
...
...
@@ -16,6 +16,7 @@
</ItemGroup>
<ItemGroup>
<Folder Include="Employees\Commands\AttachFamilyMemberToEmployee\" />
<Folder Include="Employees\Queries\" />
</ItemGroup>
</Project>
Clinics.Backend/Application/Employees/Commands/Create/CreateEmployeeCommand.cs
→
Clinics.Backend/Application/Employees/Commands/Create
Employee
/CreateEmployeeCommand.cs
View file @
c4245ed6
using
Application.Abstractions.CQRS.Commands
;
namespace
Application.Employees.Commands.Create
;
namespace
Application.Employees.Commands.Create
Employee
;
public
class
CreateEmployeeCommand
:
ICommand
{
...
...
Clinics.Backend/Application/Employees/Commands/Create/CreateEmployeeCommandHandler.cs
→
Clinics.Backend/Application/Employees/Commands/Create
Employee
/CreateEmployeeCommandHandler.cs
View file @
c4245ed6
...
...
@@ -5,7 +5,7 @@ using Domain.Repositories;
using
Domain.Shared
;
using
Domain.UnitOfWork
;
namespace
Application.Employees.Commands.Create
;
namespace
Application.Employees.Commands.Create
Employee
;
public
class
CreateEmployeeCommandHandler
:
ICommandHandler
<
CreateEmployeeCommand
>
{
...
...
@@ -53,7 +53,7 @@ public class CreateEmployeeCommandHandler : ICommandHandler<CreateEmployeeComman
//return Result.Failure(new Error("Persistence.UnableToSaveTransaction", exp.Message));
// For deployment
return
Result
.
Failure
(
Domain
.
Errors
.
PersistenceErrors
.
UnableToCompleteTransaction
);
return
Result
.
Failure
(
PersistenceErrors
.
UnableToCompleteTransaction
);
}
return
Result
.
Success
();
...
...
Clinics.Backend/Application/Employees/Commands/Create/CreateEmployeeCommandValidator.cs
→
Clinics.Backend/Application/Employees/Commands/Create
Employee
/CreateEmployeeCommandValidator.cs
View file @
c4245ed6
...
...
@@ -2,7 +2,7 @@
using
Domain.ValidationConstants.RegularExpressions
;
using
FluentValidation
;
namespace
Application.Employees.Commands.Create
;
namespace
Application.Employees.Commands.Create
Employee
;
public
class
CreateEmployeeCommandValidator
:
AbstractValidator
<
CreateEmployeeCommand
>
{
...
...
Clinics.Backend/Presentation/Controllers/EmployeesController.cs
View file @
c4245ed6
using
Application.Employees.Commands.Create
;
using
Application.Employees.Commands.Create
Employee
;
using
MediatR
;
using
Microsoft.AspNetCore.Mvc
;
using
Presentation.Controllers.Base
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment