working on board view

This commit is contained in:
Ryan Peters 2023-04-07 15:06:22 -04:00
parent e34678efc5
commit b6f427d629
3 changed files with 24 additions and 0 deletions

View File

@ -22,6 +22,20 @@ public class HomeController : Controller
return View();
}
public IActionResult Board()
{
var userId = Guid.Parse("08db379a-5de8-420d-8232-1bb60fdf249b");
var match = dbContext.Matches
.OrderByDescending(m => m.Created)
.FirstOrDefault(m => m.PlayerOne.UserId == userId || m.PlayerTwo.UserId == userId);
if (match != null)
{
}
}
public async Task<IActionResult> CreateMatch(Guid userOneGuid, Guid userTwoGuid)
{
var playerOne = new Player

6
Models/BoardViewModel.cs Normal file
View File

@ -0,0 +1,6 @@
namespace Sequence.Models;
public class BoardViewModel
{
}

4
Views/Home/board.cshtml Normal file
View File

@ -0,0 +1,4 @@
@{
ViewData["Title"] = "Board";
}