ScientificReport
DepartmentEditModel.cs
Go to the documentation of this file.
1 using System;
2 using System.Collections.Generic;
3 using System.ComponentModel.DataAnnotations;
5 
6 namespace ScientificReport.DTO.Models.Department
7 {
8 
9  public class DepartmentEditModel
10  {
11  public DAL.Entities.Department Department { get; set; }
12 
13  public Guid DepartmentId { get; set; }
14 
15  [Required]
16  public string Title { get; set; }
17 
18  [Required]
19  [Display(Name = "Head of Department")]
20  public Guid SelectedHeadId { get; set; }
21 
22  public IEnumerable<DAL.Entities.UserProfile.UserProfile> UserSelection { get; set; }
23 
24  public IEnumerable<ScientificWork> AvailableScientificWork { get; set; }
25 
26  public IEnumerable<DAL.Entities.UserProfile.UserProfile> Staff { get; set; }
27 
28  public DAL.Entities.UserProfile.UserProfile Head { get; set; }
29 
30  public IEnumerable<ScientificWork> ScientificWorks { get; set; }
31 
32  public bool IsEditingByHead { get; set; }
33  }
34 }