Properly add game upon save
parent
57eb454dcc
commit
171e01cf08
|
@ -165,11 +165,20 @@
|
|||
private async Task Save()
|
||||
{
|
||||
try
|
||||
{
|
||||
if (Game.Id != Guid.Empty)
|
||||
{
|
||||
Game = await GameService.Update(Game);
|
||||
|
||||
await MessageService.Success("Game updated!");
|
||||
}
|
||||
else
|
||||
{
|
||||
Game = await GameService.Add(Game);
|
||||
|
||||
await MessageService.Success("Game added!");
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
await MessageService.Error("Could not save!");
|
||||
|
|
Loading…
Reference in New Issue