diff --git a/src/GameIdeas/Client/GameIdeas.BlazorApp/Helpers/GameHelper.cs b/src/GameIdeas/Client/GameIdeas.BlazorApp/Helpers/GameHelper.cs new file mode 100644 index 0000000..d806f8e --- /dev/null +++ b/src/GameIdeas/Client/GameIdeas.BlazorApp/Helpers/GameHelper.cs @@ -0,0 +1,12 @@ +using GameIdeas.Shared.Dto; + +namespace GameIdeas.BlazorApp.Helpers; + +public static class GameHelper +{ + public static void WriteTrackingDto(GameDto game) + { + game.CreationUserId = 100000; + game.CreationDate = DateTime.Now; + } +} diff --git a/src/GameIdeas/Client/GameIdeas.BlazorApp/Pages/Games/Components/GameCreationForm.razor b/src/GameIdeas/Client/GameIdeas.BlazorApp/Pages/Games/Components/GameCreationForm.razor index 49c858c..103208d 100644 --- a/src/GameIdeas/Client/GameIdeas.BlazorApp/Pages/Games/Components/GameCreationForm.razor +++ b/src/GameIdeas/Client/GameIdeas.BlazorApp/Pages/Games/Components/GameCreationForm.razor @@ -10,7 +10,7 @@