public async Task <ActionResult> CreateAbsenceType([FromBody] AbsenceType absenceType)
        {
            if (absenceType == null)
            {
                return(BadRequest());
            }

            var aType = await _repository.CreateAbsenceType(absenceType);

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

            return(CreatedAtAction(nameof(GetAbsenceType), new { id = absenceType.Id }, absenceType));
        }