26 lines
615 B
C#
26 lines
615 B
C#
using ComputerShopDataModels.Models;
|
||
using System;
|
||
using System.Collections.Generic;
|
||
using System.ComponentModel.DataAnnotations;
|
||
using System.Linq;
|
||
using System.Text;
|
||
using System.Threading.Tasks;
|
||
|
||
namespace ComputerShopDatabaseImplement.Models
|
||
{
|
||
public class User : IUserModel
|
||
{
|
||
public int Id { get; private set; }
|
||
|
||
[Required]
|
||
public string Login { get; set; } = string.Empty;
|
||
|
||
[Required]
|
||
public string Password { get; set; } = string.Empty;
|
||
|
||
//!!!МБ ТУТ НУЖНА ДОП. АННОТАЦИЯ ПРОВЕРКИ ПОЧТЫ
|
||
[Required]
|
||
public string Email { get; set; } = string.Empty;
|
||
}
|
||
}
|