public NewsRelease Update(string id, NewsRelease updatedRelease) { var release = NewsReleases.FirstOrDefault(r => r.Key == id); release.Keywords = updatedRelease.Keywords; NewsReleases.Remove(release); NewsReleases.Add(release); return(updatedRelease); }
public NewsRelease Get(string id) { return(NewsReleases.FirstOrDefault(r => r.Key == id)); }