Identity Rescafolding and DBContext changes
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user