public ContentDTO GetContentByID(int id)
{
string strSQL = "CONTENTID = " + id;
List<Content> contents = HibernateHelper.SelectCommand<Content>(strSQL);
Content content = null;
if (contents.Count > 0) {
content = contents[0];
} else {
throw new Exception("Impossibile trovare il content");
}
Mapper.CreateMap<Content, ContentDTO>();
return Mapper.Map<Content, ContentDTO>(content);
}