示例#1
0
 public async Task <Model.Vacation> Get(string id)
 {
     return(await _vacationRepository.GetVacation(id) ?? new Model.Vacation());
 }
示例#2
0
 public async Task <Vacation> GetVacation(int Id)
 {
     return(await _vacationRepository.GetVacation(Id));
 }
示例#3
0
 private bool checkVacaionBalance(EmployeeBalance employeeBalance)
 {
     return(employeeBalance.Balance > _vacationRepo.GetVacation(employeeBalance.VacationID).Balance);
 }
 public Vacation GetVacation(int id)
 {
     return(_vacationRepo.GetVacation(id));
 }