public async Task <object> DeletePreference(int id)
        {
            var preference = await _preferenceService.GetPreference(id);

            if (preference == null)
            {
                return(JsonResults.Error());
            }

            await _preferenceService.DeletePreference(preference);

            return(JsonResults.Success());
        }