ScientificReport
UserProfileEditModel.cs
Go to the documentation of this file.
1 using System;
2 using System.Collections.Generic;
3 using System.ComponentModel.DataAnnotations;
4 
5 namespace ScientificReport.DTO.Models.UserProfile
6 {
7  public class UserProfileEditModel
8  {
9  [Required]
10  public string FirstName { get; set; }
11 
12  [Required]
13  public string MiddleName { get; set; }
14 
15  [Required]
16  public string LastName { get; set; }
17 
18  [Required]
19  public string UserName { get; set; }
20 
21  [Required]
22  public string Email { get; set; }
23 
24  public int BirthYear { get; set; }
25 
26  public int GraduationYear { get; set; }
27 
28  public string ScientificDegree { get; set; }
29 
30  public int YearDegreeGained { get; set; }
31 
32  public string AcademicStatus { get; set; }
33 
34  public int YearDegreeAssigned { get; set; }
35 
36  [Required]
37  public string PhoneNumber { get; set; }
38 
39  public bool IsApproved { get; set; }
40 
41  public bool IsActive { get; set; }
42 
43  public DAL.Entities.UserProfile.UserProfile.SexValue Sex { get; set; }
44 
45  public Guid UserId { get; set; }
46 
47  public bool IsSelfEditing { get; set; }
48 
49  public IEnumerable<DAL.Roles.UserProfileRole> AllRoles { get; set; }
50 
51  public IEnumerable<string> UserRoles { get; set; }
52 
53  public bool IsHeadOfDepartment { get; set; }
54  }
55 }