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

RemovePhotoById() публичный статический Метод

public static RemovePhotoById ( int id ) : bool
id int
Результат bool
		public static bool RemovePhotoById(int id)
		{
			bool result = false;

			SiteSettings s = SiteSettings.GetSharedSettings();
			if (s.StorePhotosInDatabase)
			{
				result = true;
			}
			{
				result = DeleteLocalPhotoFiles(id);
			}

			return result;
		}