Updated Song model to include ArtistId, Updated Artist Model, and partially implemented Artist API endpoint functionality. I left TODO's on where to pick up. #19, #21, #26

This commit is contained in:
amazing-username
2019-05-09 21:51:29 -04:00
parent 287719db42
commit 0c4a1612b1
6 changed files with 229 additions and 16 deletions
+5 -1
View File
@@ -1,4 +1,5 @@
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
@@ -7,10 +8,13 @@ namespace Icarus.Models
public class Artist
{
[JsonProperty("id")]
public int Id { get; set; }
public int ArtistId { get; set; }
[JsonProperty("name")]
public string Name { get; set; }
[JsonProperty("song_count")]
public int SongCount { get; set; }
[JsonIgnore]
public List<Song> Songs { get; set; }
}
}