Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 720 Bytes

README.md

File metadata and controls

25 lines (20 loc) · 720 Bytes

Panteon.HistoryStorage

Panteon.HistoryStorage

Simple History Storage interface

public interface IHistoryStorage
{
  bool Store(HistoryModel historyModel);
  IEnumerable<HistoryModel> Load(string name, DateTime? from = null, DateTime? to = null);
}

public class HistoryModel
{
  public int Id { get; set; }
  public string Name { get; set; }
  public string Details { get; set; }
  public DateTime DateCreated { get; set; }
}

License

Code and documentation are available according to the MIT License (see LICENSE).