Example #1
0
        public void ApplyAbsence(ManagingDateModel model)
        {
            var id = model.UserId;

            var employee = employeeDataAccessObject.GetSingle(id);
            employee.AbsenceList.Add(new ManagingDateModel {
                Day = model.Day,
                Month = model.Month,
                Year = model.Year,
                Reason = (Reason)model.Reason,
                ProjectId = model.ProjectId
            });
        }
 public void ApplyChanges(ManagingDateModel model)
 {
     service.ApplyAbsence(model);
 }