working customer post, get and delete
This commit is contained in:
@@ -1,15 +1,20 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
namespace AB.Contracts;
|
||||
|
||||
namespace AB.Contracts
|
||||
public class CustomerDto
|
||||
{
|
||||
public class CustomerDto
|
||||
{
|
||||
|
||||
public Guid Id { get; set; }
|
||||
public Guid Id { get; set; }
|
||||
|
||||
public string Salutaion { get; set; }
|
||||
|
||||
public string Name1 { get; set; }
|
||||
|
||||
public string Name2 { get; set; }
|
||||
|
||||
public string Email { get; set; }
|
||||
|
||||
public string Iban { get; set; }
|
||||
|
||||
public string PhoneNumber { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,12 +1,27 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace AB.Contracts
|
||||
namespace AB.Contracts;
|
||||
|
||||
public class CustomerForCreationDto
|
||||
{
|
||||
public class CustomerForCreationDto
|
||||
{
|
||||
}
|
||||
[Required]
|
||||
public string Salutaion { get; set; }
|
||||
|
||||
[Required]
|
||||
public string Name1 { get; set; }
|
||||
|
||||
public string? Name2 { get; set; }
|
||||
|
||||
public string? Email { get; set; }
|
||||
|
||||
public string? Iban { get; set; }
|
||||
|
||||
public string? PhoneNumber { get; set; }
|
||||
|
||||
|
||||
}
|
||||
|
||||
14
AB.Contracts/SupplierDto.cs
Normal file
14
AB.Contracts/SupplierDto.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace AB.Contracts;
|
||||
|
||||
public class SupplierDto
|
||||
{
|
||||
|
||||
public Guid Id { get; set; }
|
||||
|
||||
}
|
||||
@@ -4,9 +4,8 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace AB.Contracts
|
||||
namespace AB.Contracts;
|
||||
|
||||
public class SupplierForCreationDto
|
||||
{
|
||||
public class SupplierForCreationDto
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user