Exemple #1
0
        private string CheckExistingFile(PhotoType type, string photoName, string fullPath)
        {
            if (!File.Exists(fullPath))
            {
                if (chboxMakeNull.Checked)
                {
                    PhotoService.DeletePhotoWithPath(type, photoName);
                    return string.Format("File {0} deleted<br />", fullPath);
                }

                return string.Format("File {0} will be deleted<br />", fullPath);
            }

            return "";
        }