AK DTO authentification with first_name and Last_Name

This commit is contained in:
Kiuchi 2021-03-28 22:59:26 +01:00
parent d5fc8389db
commit 91dd0ef95a
4 changed files with 48 additions and 1 deletions

View File

@ -1,12 +1,19 @@
using System.Collections.Generic;
using Models;
using System.ComponentModel.DataAnnotations;
namespace DTO
{
public class CustomerDTO
{
public int customer_id { get; set; }
public int Customer_id { get; set; }
public string First_name {get; set;}
public string Last_name { get; set; }
[Required]
public string username { get; set; }
[Required]
public string password { get; set; }
}
}

View File

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

View File

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

View File

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