project reorganized
This commit is contained in:
20
WatchIt.Common/WatchIt.Common.Model/Genres/GenreRequest.cs
Normal file
20
WatchIt.Common/WatchIt.Common.Model/Genres/GenreRequest.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
namespace WatchIt.Common.Model.Genres;
|
||||
|
||||
public class GenreRequest : Genre
|
||||
{
|
||||
#region PUBLIC METHODS
|
||||
|
||||
public Database.Model.Common.Genre CreateGenre() => new Database.Model.Common.Genre
|
||||
{
|
||||
Name = Name,
|
||||
Description = Description,
|
||||
};
|
||||
|
||||
public void UpdateGenre(Database.Model.Common.Genre genre)
|
||||
{
|
||||
genre.Name = Name;
|
||||
genre.Description = Description;
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
Reference in New Issue
Block a user