public async Task <IActionResult> PutVacationDayModel(int id, VacationDayModel vacationDayModel)
        {
            if (id != vacationDayModel.VacationDayID)
            {
                return(BadRequest());
            }

            _context.Entry(vacationDayModel).State = EntityState.Modified;

            try
            {
                await _context.SaveChangesAsync();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!VacationDayModelExists(id))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(NoContent());
        }
        public async Task <ActionResult <VacationDayModel> > PostVacationDayModel(VacationDayModel vacationDayModel)
        {
            _context.VacationDays.Add(vacationDayModel);
            await _context.SaveChangesAsync();

            return(CreatedAtAction("GetVacationDayModel", new { id = vacationDayModel.VacationDayID }, vacationDayModel));
        }