public async Task <ActionResult> UpdateAbsenceType(int id, [FromBody] AbsenceType absenceType)
        {
            if (absenceType == null || absenceType.Id != id)
            {
                return(BadRequest());
            }

            var aType = await _repository.UpdateAbsenceType(absenceType);

            if (aType == null)
            {
                return(NotFound());
            }

            return(NoContent());
        }