private static bool DeleteLocalPhotoFiles(int photoId)
{
bool result = false;
try
{
string fullPhotoPath = GetFilePath(photoId, false, PhotoSize.Full);
string mediumPhotoPath = GetFilePath(photoId, false, PhotoSize.Medium);
string smallPhotoPath = GetFilePath(photoId, false, PhotoSize.Small);
DeleteFile(fullPhotoPath);
DeleteFile(mediumPhotoPath);
DeleteFile(smallPhotoPath);
result = true;
}
catch
{
result = false;
}
return result;
}