Esempio n. 1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="conn"></param>
 /// <returns></returns>
 public bool Add(UserConnection conn)
 {
     conn.Id = Guid.NewGuid();
     _db.Add(conn);
     return(_db.Save() > 0);
 }
 public bool Add(Message message)
 {
     message.Id = Guid.NewGuid();
     _db.Add(message);
     return(_db.Save() > 0);
 }