Example #1
0
 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);
 }
Example #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);
 }
Example #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;
 }
Example #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);
 }