Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
ProjectsStatusManagement
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
hasan.bahjat
ProjectsStatusManagement
Commits
17a7a1c9
Commit
17a7a1c9
authored
Aug 08, 2024
by
hasan khaddour
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove Duplicated value objects
parent
0c387bd4
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
12 deletions
+16
-12
AddContactInfoRequest.cs
...ent.Contracts/Customers/Requests/AddContactInfoRequest.cs
+4
-1
CreateCustomerRequest.cs
...ent.Contracts/Customers/Requests/CreateCustomerRequest.cs
+3
-8
UpdateCustomerRequest.cs
...ent.Contracts/Customers/Requests/UpdateCustomerRequest.cs
+3
-2
CustomerRecord.cs
PSManagement.Contracts/Customers/Responses/CustomerRecord.cs
+2
-1
PSManagement.Contracts.csproj
PSManagement.Contracts/PSManagement.Contracts.csproj
+4
-0
No files found.
PSManagement.Contracts/Customers/Requests/AddContactInfoRequest.cs
View file @
17a7a1c9
...
...
@@ -6,5 +6,8 @@ using System.Threading.Tasks;
namespace
PSManagement.Contracts.Customers.Requests
{
public
record
AddContactInfoRequest
(
int
CustomerId
,
String
ContactType
,
String
ContactValue
);
public
record
AddContactInfoRequest
(
int
CustomerId
,
String
ContactType
,
String
ContactValue
);
}
PSManagement.Contracts/Customers/Requests/CreateCustomerRequest.cs
View file @
17a7a1c9
using
System
;
using
PSManagement.Domain.Customers.ValueObjects
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
...
...
@@ -8,14 +9,8 @@ namespace PSManagement.Contracts.Customers.Requests
{
public
record
CreateCustomerRequest
(
String
CustomerName
,
Address
Record
Address
,
Address
Address
,
String
Email
);
public
record
AddressRecord
(
String
StreetName
,
int
StreetNumber
,
int
ZipCode
,
String
City
);
}
PSManagement.Contracts/Customers/Requests/UpdateCustomerRequest.cs
View file @
17a7a1c9
using
System
;
using
PSManagement.Domain.Customers.ValueObjects
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
...
...
@@ -9,6 +10,6 @@ namespace PSManagement.Contracts.Customers.Requests
public
record
UpdateCustomerRequest
(
int
CustomerId
,
String
CustomerName
,
Address
Record
Address
,
Address
Address
,
String
Email
);
}
PSManagement.Contracts/Customers/Responses/CustomerRecord.cs
View file @
17a7a1c9
using
PSManagement.Contracts.Customers.Requests
;
using
PSManagement.Domain.Customers.ValueObjects
;
using
System
;
using
System.Collections.Generic
;
...
...
@@ -13,7 +14,7 @@ namespace PSManagement.Contracts.Customers.Responses
public
int
Id
{
get
;
set
;
}
public
String
CustomerName
{
get
;
set
;
}
public
String
Email
{
get
;
set
;
}
public
Address
Record
Address
{
get
;
set
;
}
public
Address
Address
{
get
;
set
;
}
public
IEnumerable
<
ContactInfoRecord
>
ContactInfo
{
get
;
set
;
}
}
}
PSManagement.Contracts/PSManagement.Contracts.csproj
View file @
17a7a1c9
...
...
@@ -4,4 +4,8 @@
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\PSManagement.Domain\PSManagement.Domain.csproj" />
</ItemGroup>
</Project>
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