コード例 #1
0
 /// Function Header*******************************************************
 /// Function Name: GetAllNewsLetters
 /// Function Type: Function
 /// Functionality: used to get all the newsletters
 /// Input: 
 /// Output: 
 /// Return Value:
 /// Note:  
 /// *********************************************************************
 public List<Entity.NewsInfo> GetUserFavoriteLibrary(string _strUserName, string _strUserType)
 {
     using (TLWDALDataContext _db = new TLWDALDataContext())
     {
         var _varRetVal = (from _na in _db.ms_GetUserFavoriteLibrary(_strUserName, _strUserType)
                           select new Entity.NewsInfo()
                           {
                               IntNewsLetterId = _na.IntNewsLetterId,
                               AddRemoveFromFavorite = _na.AddRemoveFromFavorite,
                               StrTitle = _na.strTitle
                           }).ToList();
         return _varRetVal;
     }
 }