Identity Rescafolding and DBContext changes

This commit is contained in:
Dimitar Todorov
2022-04-04 22:48:32 +03:00
parent 0ab907582c
commit 9b29101c2d
53 changed files with 1250 additions and 339 deletions

View File

@@ -7,6 +7,8 @@ using Microsoft.AspNetCore.Mvc.Rendering;
using Microsoft.EntityFrameworkCore;
using Data;
using Data.Entities;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Authorization;
namespace WebApp.Controllers
{
@@ -44,6 +46,7 @@ namespace WebApp.Controllers
}
// GET: Cars/Create
[Authorize(Roles = "Admin")]
public IActionResult Create()
{
return View();