AspNet.StarterKits.Classifieds.BusinessLogicLayer.PhotosDB.DeleteLocalPhotoFiles C# (CSharp) Метод

DeleteLocalPhotoFiles() приватный статический Метод

private static DeleteLocalPhotoFiles ( int photoId ) : bool
photoId int
Результат bool
		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;
		}