Identity Rescafolding and DBContext changes

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

No files matched your search

@@ -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();