Torna al Thread
public bool Salva()
{
bool result = true;
News old_news = new News(Id_News, string.Empty);
if (Id_News == string.Empty)
{
result = SalvaNews(old_news);
}
else
{
result = AggiornaNews(old_news);
}
if (result)
{
if (immagineUpload != null)
{
string small = Costanti.URL_FISICO + Costanti.NEWS_PERCORSO_IMMAGINI_SMALL + "img_" + Id_News + ".jpg";
Immagini.CropImageCenter(immagineUpload.InputStream, Costanti.NEWS_WIDTH_SMALL, Costanti.NEWS_HEIGHT_SMALL, small);
}
}
return result;
}