BgEngine.Web.Helpers.Utilities.DeleteImageFromServer C# (CSharp) Метод

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

public static DeleteImageFromServer ( string path, string thumbnailpath ) : bool
path string
thumbnailpath string
Результат bool
        public static bool DeleteImageFromServer(string path, string thumbnailpath)
        {
            FileInfo fi1 = new FileInfo(path);
            if (fi1.Exists)
            {
                fi1.Delete();
            }
            else
            {
                return false;
            }
            FileInfo fi2 = new FileInfo(thumbnailpath);
            if (fi2.Exists)
            {
                fi2.Delete();
            }
            else
            {
                return false;
            }
            return true;
        }