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