Commit 815af4a2 authored by hasan khaddour's avatar hasan khaddour

Add Customer Contracts

parent 1fcab024
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PSManagement.Contracts.Customers.Requests
{
public record AddContactInfoRequest(int CustomerId, String ContactType, String ContactValue);
}
...@@ -8,10 +8,8 @@ namespace PSManagement.Contracts.Customers.Requests ...@@ -8,10 +8,8 @@ namespace PSManagement.Contracts.Customers.Requests
{ {
public record CreateCustomerRequest( public record CreateCustomerRequest(
String CustomerName, String CustomerName,
String StreetName, AddressRecord Address ,
int StreetNumber, String Email
int ZipCode,
String City
); );
public record AddressRecord( public record AddressRecord(
......
...@@ -4,10 +4,7 @@ using System.Linq; ...@@ -4,10 +4,7 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace PSManagement.Contracts.Authentication namespace PSManagement.Contracts.Customers.Requests
{ {
public record LoginRequest( public record DeleteCustomerRequest(int CustomerId);
String Email ,
String PassWord
);
} }
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PSManagement.Contracts.Customers.Requests
{
public record UpdateCustomerRequest(
int CustomerId,
String CustomerName,
AddressRecord Address,
String Email);
}
...@@ -4,4 +4,8 @@ ...@@ -4,4 +4,8 @@
<TargetFramework>net5.0</TargetFramework> <TargetFramework>net5.0</TargetFramework>
</PropertyGroup> </PropertyGroup>
<ItemGroup>
<Folder Include="Customers\Responses\" />
</ItemGroup>
</Project> </Project>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment