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