AK DTO authentification with first_name and Last_Name
This commit is contained in:
parent
d5fc8389db
commit
91dd0ef95a
|
|
@ -1,12 +1,19 @@
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using Models;
|
using Models;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
|
||||||
namespace DTO
|
namespace DTO
|
||||||
{
|
{
|
||||||
public class CustomerDTO
|
public class CustomerDTO
|
||||||
{
|
{
|
||||||
public int customer_id { get; set; }
|
public int Customer_id { get; set; }
|
||||||
|
|
||||||
public string First_name {get; set;}
|
public string First_name {get; set;}
|
||||||
public string Last_name { get; set; }
|
public string Last_name { get; set; }
|
||||||
|
|
||||||
|
[Required]
|
||||||
|
public string username { get; set; }
|
||||||
|
[Required]
|
||||||
|
public string password { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -0,0 +1,18 @@
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
namespace DTO
|
||||||
|
{
|
||||||
|
public class RegisterModel
|
||||||
|
{
|
||||||
|
[Required]
|
||||||
|
public string FirstName { get; set; }
|
||||||
|
|
||||||
|
[Required]
|
||||||
|
public string LastName { get; set; }
|
||||||
|
|
||||||
|
[Required]
|
||||||
|
public string Username { get; set; }
|
||||||
|
|
||||||
|
[Required]
|
||||||
|
public string Password { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,12 @@
|
||||||
|
namespace DTO
|
||||||
|
{
|
||||||
|
public class UpdateModel
|
||||||
|
{
|
||||||
|
public string FirstName { get; set; }
|
||||||
|
public string LastName { get; set; }
|
||||||
|
public string Username { get; set; }
|
||||||
|
public string CurrentPassword { get; set; }
|
||||||
|
public string NewPassword { get; set; }
|
||||||
|
public string ConfirmNewPassword { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,10 @@
|
||||||
|
namespace DTO
|
||||||
|
{
|
||||||
|
public class UserModel
|
||||||
|
{
|
||||||
|
public int Id { get; set; }
|
||||||
|
public string FirstName { get; set; }
|
||||||
|
public string LastName { get; set; }
|
||||||
|
public string Username { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue