Example #1
0
 // GET api/<controller>
 public IEnumerable <IMConversationSnapShot> Get()
 {
     try
     {
         int _UserID = Convert.ToInt32(HttpContext.Current.User.Identity.Name);
         List <IMConversationSnapShot> _RecConversation = new IMConversationSnapShot().GetUserIMConversation(_UserID);
         return(_RecConversation);
     }
     catch (Exception)
     {
         return(null);
     }
 }
 // Get api/<controller>
 public List <IMConversationSnapShot> Get()
 {
     try
     {
         int _UserID           = Convert.ToInt32(HttpContext.Current.User.Identity.Name);
         var m_IMConversations = new IMConversationSnapShot().GetUserIMConversation(_UserID);
         return(m_IMConversations);
     }
     catch (Exception)
     {
         return(null);
     }
 }