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); }
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; }
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; }
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); }
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); }