示例#1
0
 public StudentRes(Student student)
 {
     StudentId   = student.StudentId;
     Email       = student.User.Email;
     FirstName   = student.FirstName;
     LastName    = student.LastName;
     DateOfBirth = student.DateOfBirth;
     Address     = new AddressRes(student.Address);
 }
示例#2
0
 public JobOfferMinRes(JobOffer jobOffer)
 {
     JobOfferId = jobOffer.JobOfferId;
     Title      = jobOffer.Title;
     Wage       = jobOffer.Wage;
     Group      = new GroupRes(jobOffer.Group);
     Address    = new AddressRes(jobOffer.Address);
     Start      = jobOffer.Start;
     End        = jobOffer.End;
 }
示例#3
0
 public StudentWithAdActivRes(Student student)
 {
     StudentId   = student.StudentId;
     Email       = student.User.Email;
     FirstName   = student.FirstName;
     LastName    = student.LastName;
     DateOfBirth = student.DateOfBirth;
     Address     = new AddressRes(student.Address);
     Activated   = student.User.Role == UserRoles.Student;
 }
示例#4
0
 public JobOfferRes(JobOffer jobOffer, int?freeSpaces = null)
 {
     JobOfferId  = jobOffer.JobOfferId;
     Title       = jobOffer.Title;
     Description = jobOffer.Description;
     Wage        = jobOffer.Wage;
     Spaces      = jobOffer.Spaces;
     FreeSpaces  = freeSpaces;
     Start       = jobOffer.Start;
     End         = jobOffer.End;
     Group       = new GroupRes(jobOffer.Group);
     Address     = new AddressRes(jobOffer.Address);
 }
示例#5
0
 public JobOfferWithJasRes(JobOffer jobOffer, ICollection <JobApplication> jobApplications, int freeSpaces)
 {
     JobOfferId      = jobOffer.JobOfferId;
     Title           = jobOffer.Title;
     Description     = jobOffer.Description;
     Wage            = jobOffer.Wage;
     Spaces          = jobOffer.Spaces;
     FreeSpaces      = freeSpaces;
     Start           = jobOffer.Start;
     End             = jobOffer.End;
     JobApplications = MapJobApplications(jobApplications);
     Address         = new AddressRes(jobOffer.Address);
     Group           = new GroupRes(jobOffer.Group);
 }