CSharp/DataModels/User.cs

33 lines
916 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
namespace DataModels
{
public class User
{
int id, idRole;
string name, surname, login, password;
DateTime dateOfBirth;
bool isDeleted;
public int Id { get => id; set => id = value; }
public string Name { get => name; set => name = value; }
public string Surname { get => surname; set => surname = value; }
public string Login { get => login; set => login = value; }
public string Password { get => password; set => password = value; }
public DateTime DateOfBirth { get => dateOfBirth; set => dateOfBirth = value; }
public bool IsDeleted { get => isDeleted; set => isDeleted = value; }
string GetDescription()
{
return Login + " " + Name;
}
}
}