public IHttpActionResult ApproveVacation(GeneralIdModel model)
        {
            var vacation = VacationRepository.FirstOrDefault(x => x.Id == model.Id);

            if (vacation == null)
            {
                return(BadRequest("ERROR: Puhkus puudub andmebaasis"));
            }

            vacation.Status = VacationStatus.Approved;
            VacationRepository.SaveOrUpdate(vacation);
            VacationRepository.Commit();

            var emails = EmployeeRepository
                         .Where(x => x.VacationMessages == true && x.Id == vacation.EmployeeId)
                         .Select(x => x.Email)
                         .ToList();

            EmailService.VacationApproved(vacation, emails);

            return(Ok());
        }