Beispiel #1
0
        public void RemoveBand(int bandId)
        {
            Band band = bandRepository.GetBand(bandId);

            bandRepository.RemoveBand(band);

            string fullPath = Request.MapPath(band.ImagePath);

            if (System.IO.File.Exists(fullPath))
            {
                System.IO.File.Delete(fullPath);
            }
        }