Exemplo n.º 1
0
 public AbsencesController(IUserRepo dbUser, IAbsence dbAbsence, IAbsenceTypeRepo dbAbsenceType, INotification dbNotify, ITeamLead dbTeamLeads)
 {
     _dbUser        = dbUser;
     _dbAbsence     = dbAbsence;
     _dbAbsenceType = dbAbsenceType;
     _dbNotify      = dbNotify;
     _dbTeamLeads   = dbTeamLeads;
 }
Exemplo n.º 2
0
 public static AbsenceDTO Convert(IAbsence absence)
 {
     return new AbsenceDTO()
     {
         Id = absence.Id,
         Date = absence.Date,
         Excused = absence.Excused,
         Type = Convert(absence.Type),
         Hour = Convert(absence.Hour),
         Student = absence.Student
     };
 }
Exemplo n.º 3
0
 public EmployeeProfilesController(IUserRepo dbUser, INotification dbNotify,
                                   IProject dbProjects, IAbsenceTypeRepo dbAbsencesType, IRealization dbRealizations, IAbsence dbAbsences, ITeamLead dbTeamLeads, IEmployee dbEmployees, IEmployeeEnrollments dbEEmployeeEnrollments)
 {
     _dbUser                = dbUser;
     _dbNotify              = dbNotify;
     _dbTeamLeads           = dbTeamLeads;
     _dbEmployees           = dbEmployees;
     _dbEmployeeEnrollments = dbEEmployeeEnrollments;
     _dbRealizations        = dbRealizations;
     _dbProjects            = dbProjects;
     _dbAbsences            = dbAbsences;
     _dbAbsencesType        = dbAbsencesType;
 }