Exemplo n.º 1
0
 public News()
 {
     Data = new eNews();
 }
Exemplo n.º 2
0
 private eNews NewsEntity()
 {
     eNews entityNews = new eNews();
     int nItemID = ConvertData.ConvertToInt(Request.QueryString[Constants.ACTION_ID]);
     string sQueery = ConvertData.ConvertToString(Request.QueryString[Constants.ACTION]);
     if (nItemID > 0 && sQueery == Constants.ACTION_EDIT)
     {
         News objNews = new News();
         objNews.LoadById(nItemID);
         entityNews = objNews.Data;
     }
     return entityNews;
 }