ENEI2019-Public/api/Dtos/UserForRegisterDto.cs

39 lines
1.2 KiB
C#
Executable File
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using api.Models;
namespace api.Dtos
{
public class UserForRegisterDto
{
[Required]
public string username {get;set;}
[Required]
[StringLength(15,MinimumLength=4,ErrorMessage="You must specify password between 4 and 15 cars")]
public string password{get;set;}
public string fullname {get;set;}
public string gender {get;set;}
public int age{get;set;}
public int phone{get;set;}
public string email{get;set;}
public string university{get;set;}
public string adress{get;set;}
public string country{get;set;}
public string city{get;set;}
public string linkedin{get;set;}
public DateTime lastlogin {get;set;}
public DateTime registed{get;set;}
public string qrcode{get;set;}
public string role{get;set;}
public string degree{get;set;}
public int schoolyear{get;set;}
public string profileicon {get;set;}
public string company{get;set;}
public string position{get;set;}
public string about{get;set;}
public ICollection<Photo> Photos{get;set;}
}
}