working on board view
This commit is contained in:
parent
e34678efc5
commit
b6f427d629
@ -22,6 +22,20 @@ public class HomeController : Controller
|
|||||||
return View();
|
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)
|
public async Task<IActionResult> CreateMatch(Guid userOneGuid, Guid userTwoGuid)
|
||||||
{
|
{
|
||||||
var playerOne = new Player
|
var playerOne = new Player
|
||||||
|
6
Models/BoardViewModel.cs
Normal file
6
Models/BoardViewModel.cs
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
namespace Sequence.Models;
|
||||||
|
|
||||||
|
public class BoardViewModel
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
4
Views/Home/board.cshtml
Normal file
4
Views/Home/board.cshtml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
@{
|
||||||
|
ViewData["Title"] = "Board";
|
||||||
|
}
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user