public async Task DeleteVacancyAsync(DeleteEditModel m, VacancyUser user)
        {
            var vacancy = await _vacancyClient.GetVacancyAsync(m.VacancyId.Value);

            Utility.CheckAuthorisedAccess(vacancy, m.Ukprn);

            if (!vacancy.CanDelete)
            {
                throw new InvalidStateException(string.Format(ErrorMessages.VacancyNotAvailableForEditing, vacancy.Title));
            }

            await _client.DeleteVacancyAsync(vacancy.Id, user);
        }