/// <summary> /// Invoke the command /// </summary> /// <param name="command">Command to run</param> public void Invoke(CompleteNote command) { var note = _storage.Load(command.Id); note.Complete(); _storage.Save(note); }
/// <summary> /// Invoke the command /// </summary> /// <param name="command">Command to run</param> public void Invoke(UpdateNote command) { var note = _storage.Load(command.Id); note.Update(command.NewBody); _storage.Save(note); }