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;
		}