public async Task <IActionResult> Delete(int unitId, string globalId)
        {
            if (unitId < 1 || string.IsNullOrWhiteSpace(globalId))
            {
                return(BadRequest());
            }

            var setting = await _settingService.GetSettingByUnitAsync(unitId, globalId);

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

            await _settingService.DeleteAsync(setting);

            return(NoContent());
        }