Skip to content

Commit

Permalink
Create Core and Domain Models
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-Schou committed Jul 4, 2022
1 parent 0a31b0f commit 8aea18f
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
15 changes: 15 additions & 0 deletions MediatR_Demo/Core/Enums/MovieGenre.cs
@@ -0,0 +1,15 @@
namespace MediatR_Demo.Core.Enums
{
public enum MovieGenre
{
Action,
Comedy,
Drama,
Fantasy,
Horror,
Mystery,
Romance,
Thriller,
Western
}
}
13 changes: 13 additions & 0 deletions MediatR_Demo/Domain/Entities/Movie/Movie.cs
@@ -0,0 +1,13 @@
using MediatR_Demo.Core.Enums;

namespace MediatR_Demo.Domain.Entities.Movie
{
public class Movie
{
public long Id { get; set; }
public string? Title { get; set; }
public string? Description { get; set; }
public MovieGenre Genre { get; set; }
public int? Rating { get; set; }
}
}

0 comments on commit 8aea18f

Please sign in to comment.