public async Task<TResponse<bool>> DisableNotification() { try { var disableNotification = await _appConfigService.GetByName("DisableNotification"); if(disableNotification.IsSuccess) { if(disableNotification.Data != null) { if(disableNotification.Data.Value.ToIntEx() == 0) { return await Ok(true); } return await Fail<bool>(string.Empty); } return await Ok(true); } return await Fail<bool>(disableNotification.Message); } catch (Exception exception) { return await Fail<bool>(exception); } }