project reorganized
This commit is contained in:
28
WatchIt.Common/WatchIt.Common.Model/Genres/GenreResponse.cs
Normal file
28
WatchIt.Common/WatchIt.Common.Model/Genres/GenreResponse.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace WatchIt.Common.Model.Genres;
|
||||
|
||||
public class GenreResponse : Genre
|
||||
{
|
||||
#region PROPERTIES
|
||||
|
||||
[JsonPropertyName("id")]
|
||||
public long Id { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
#region CONSTRUCTORS
|
||||
|
||||
[SetsRequiredMembers]
|
||||
public GenreResponse(Database.Model.Common.Genre genre)
|
||||
{
|
||||
Id = genre.Id;
|
||||
Name = genre.Name;
|
||||
Description = genre.Description;
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
Reference in New Issue
Block a user