ScientificReport
ScientificInternshipModel.cs
Go to the documentation of this file.
1 using System;
2 using System.ComponentModel.DataAnnotations;
3 
4 namespace ScientificReport.DTO.Models.ScientificInternship
5 {
7  {
8  [Required]
9  public string PlaceOfInternship { get; set; }
10 
11  [Required]
12  [DataType(DataType.Date)]
13  public DateTime Started { get; set; }
14 
15  [Required]
16  [DataType(DataType.Date)]
17  public DateTime Ended { get; set; }
18 
19  [Required]
20  public string Contents { get; set; }
21 
23  {
24  }
25 
26  public ScientificInternshipModel(DAL.Entities.ScientificInternship scientificInternship)
27  {
28  PlaceOfInternship = scientificInternship.PlaceOfInternship;
29  Started = scientificInternship.Started;
30  Ended = scientificInternship.Ended;
31  Contents = scientificInternship.Contents;
32  }
33  }
34 }
ScientificInternshipModel(DAL.Entities.ScientificInternship scientificInternship)