コード例 #1
0
ファイル: Sector.cs プロジェクト: VerusLucian/BookOverflowASP
 public Sector(SectorDTO sectorDTO)
 {
     this.Id        = sectorDTO.Id;
     this.Name      = sectorDTO.Name;
     this.CreatedAt = sectorDTO.CreatedAt;
     this.DeletedAt = sectorDTO.DeletedAt;
     this.DeletedBy = UserContainer.GetUserById(sectorDTO.DeletedBy);
 }
コード例 #2
0
 public Course(CourseDTO courseDTO)
 {
     this.Id        = courseDTO.Id;
     this.Name      = courseDTO.Name;
     this.CreatedAt = courseDTO.CreatedAt;
     this.DeletedAt = courseDTO.DeletedAt;
     this.DeletedBy = UserContainer.GetUserById(courseDTO.DeletedBy);
 }
コード例 #3
0
 public Book(BookDTO bookDTO)
 {
     this.Id            = bookDTO.Id;
     this.User          = UserContainer.GetUserById(bookDTO.User);
     this.Course        = CourseContainer.GetCourseById(bookDTO.Course);
     this.Sector        = SectorContainer.GetSectorById(bookDTO.Sector);
     this.Name          = bookDTO.Name;
     this.QualityRating = bookDTO.QualityRating;
     this.Price         = bookDTO.Price;
     this.CreatedAt     = bookDTO.CreatedAt;
     this.DeletedAt     = bookDTO.DeletedAt;
 }
コード例 #4
0
 public User(UserDTO userDTO)
 {
     this.Id         = userDTO.Id;
     this.Image      = userDTO.Image;
     this.Password   = userDTO.Password;
     this.FirstName  = userDTO.FirstName;
     this.Insertion  = userDTO.Insertion;
     this.LastName   = userDTO.LastName;
     this.Permission = (PermissionType)userDTO.Permission;
     this.ZipCode    = userDTO.ZipCode;
     this.CreatedAt  = userDTO.CreatedAt;
     this.DeletedAt  = userDTO.DeletedAt;
     this.DeletedBy  = UserContainer.GetUserById(userDTO.DeletedBy);
 }