Skip to content

Instantly share code, notes, and snippets.

@cerkit
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cerkit/9749112 to your computer and use it in GitHub Desktop.
Save cerkit/9749112 to your computer and use it in GitHub Desktop.
using RecordKeeper.Data.Interfaces;
using RecordKeeper.Portable.Models;
using System;
using System.Collections.Generic;
namespace RecordKeeper.Data.Repositories
{
public class FormatRepository : RepositoryBase<AlbumFormat>, IFormatRepository
{
List<AlbumFormat> _formatList;
public FormatRepository()
{
_formatList = new List<AlbumFormat>();
_formatList.Add(new AlbumFormat { Id = "CD", Description = "Compact Disc" });
_formatList.Add(new AlbumFormat { Id = "Record", Description = "Vinyl Record" });
}
public List<AlbumFormat> GetAll()
{
return _formatList;
}
public AlbumFormat Get(string id)
{
return _formatList.Find(a => a.Id == id);
}
public void Update(AlbumFormat entity)
{
throw new NotImplementedException();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment