working customer post, get and delete

This commit is contained in:
2023-06-07 14:47:00 +02:00
parent ad998e0499
commit c805ce20a8
26 changed files with 448 additions and 142 deletions

View File

@@ -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; }
}
}

View File

@@ -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; }
}

View 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; }
}

View File

@@ -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
{
}
}