Added Genre and Year models, Genre and Year Context, Genre and Year Stores, Genre and Year skeleton APIControllers #41 and #42

This commit is contained in:
amazing-username
2019-05-13 21:19:15 -04:00
parent d75d2924a7
commit cd2da929eb
10 changed files with 276 additions and 2 deletions
+20
View File
@@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
namespace Icarus.Models
{
public class Genre
{
[JsonProperty("id")]
public int GenreId { get; set; }
[JsonProperty("genre")]
public string GenreName { get; set; }
[JsonProperty("song_count")]
public int SongCount { get; set; }
[JsonIgnore]
public List<Song> Songs { get; set; }
}
}