Last active
August 29, 2015 13:57
-
-
Save cerkit/9749112 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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