//
// Copyright (c) PlaceholderCompany. All rights reserved.
//
using Webzine.Entity;
using Webzine.Repository.Contracts;
namespace Webzine.Repository
{
public class LocalCommentaireRepository : ICommentaireRepository
{
private readonly InMemoryDataStore dataStore;
public LocalCommentaireRepository(InMemoryDataStore dataStore)
{
this.dataStore = dataStore;
}
///
public void Add(Commentaire commentaire)
{
throw new NotSupportedException();
}
///
public void Delete(Commentaire commentaire)
{
throw new NotSupportedException();
}
///
public Commentaire Find(int id)
{
return this.dataStore.Commentaires.Find(c => c.IdCommentaire == id);
}
///
public IEnumerable FindAll()
{
return this.dataStore.Commentaires.ToList();
}
}
}