public Guid Add(Message message) { message.ID = Guid.NewGuid(); _messagesCache.Add(message); return message.ID; }
/// <summary> /// Updates an existing Message /// </summary> /// <param name="message"></param> public void Update(Message message) { throw new NotImplementedException(); }
/// <summary> /// Removes an existing Message from the repository /// </summary> /// <param name="message"></param> public void Remove(Message message) { throw new NotImplementedException(); }
/// <summary> /// Adds a message /// </summary> /// <param name="message"></param> /// <returns></returns> public Guid Add(Message message) { throw new NotImplementedException(); }
public void Remove(Message message) { Message msg = _messagesCache.First<Message>(m => m.ID == message.ID); _messagesCache.Remove(msg); }