ScientificReport
UserProfileIndexModel.cs
Go to the documentation of this file.
1 using System;
2 using System.Collections.Generic;
3 
4 namespace ScientificReport.DTO.Models.UserProfile
5 {
7  {
8  public enum IsApprovedOption
9  {
10  All, Yes, No
11  }
12 
13  public IsApprovedOption? IsApproved { get; set; }
14  public IEnumerable<string> IsApprovedOptions { get; set; }
15  public string FirstName { get; set; }
16  public string LastName { get; set; }
17  public Guid? DepartmentId { get; set; }
18  public IEnumerable<DAL.Entities.UserProfile.UserProfile> UserProfiles { get; set; }
19  public IEnumerable<DAL.Entities.Department> Departments { get; set; }
20 
22  {
23  Init();
24  }
25 
26  public UserProfileIndexModel(IEnumerable<DAL.Entities.UserProfile.UserProfile> userProfiles, IEnumerable<DAL.Entities.Department> departments)
27  {
28  Init();
29  Departments = departments;
30  UserProfiles = userProfiles;
31  }
32 
33  private void Init()
34  {
35  IsApprovedOptions = new[]
36  {
37  "All", "Yes", "No"
38  };
39  }
40  }
41 }
UserProfileIndexModel(IEnumerable< DAL.Entities.UserProfile.UserProfile > userProfiles, IEnumerable< DAL.Entities.Department > departments)