public async Task AddSocialAsync(Social social, string filename, byte[] imageBytes) { VerifyManagementPermission(); if (social == null) { return; } (social.ImageLink, social.ImageWidth, social.ImageHeight) = HandleSocialImage(filename, imageBytes); await _socialRepository.AddSaveAsync(social); var socialHeader = await _socialHeaderRepository.GetByIdAsync(social.SocialHeaderId); await ClearSocialCache(socialHeader.Id, social.LanguageId); }