I started with the main tutorial http://www.asp.net/mvc/tutorials/mvc-5/introduction/getting-started .
I added 2 roles to the AspNetRoles database table (yes, the database is also generated automatically)
Now I am looking for tutorials to create an admin page. because I don’t know where to start. Can any of you put me in the right direction.
You can start by adding AdminControllerand then give it a few Actions.
AdminController
Actions
[Authorize] , , - :
[Authorize]
[Authorize(Roles = "Admin, AnotherRole")] public class AdminController : Controller { public ActionResult Index() { return View(); } }
, , "", , , , , actionExult.... , ... [ (Roles = "admin" )] actionresult.... admin ... , . . 4:
Source: https://habr.com/ru/post/1535027/More articles:Cropping part of a page - jqueryКак рассчитать возраст с даты рождения и группы каждого члена в возрастном диапазоне в sql - sqlTheme, UI thread, work theme, Async task - androidElasticsearch completion request with Java API - elasticsearchTime to learn Cassandra / MongoDB - databaseinitialization of "unused" is skipped by "goto label" - why do I get it for std :: string, but not for int? - c ++Чтение данных из определенного файла CSV и отображение его в JTable - javaPopUp activity starts again when it is launched from the "latest applications" - androidForm binding form for flags - phphttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1535032/how-to-change-background-color-of-jdesktoppane-which-is-created-usning-tools-in-netbeans&usg=ALkJrhinmOMoMRY9qrMArw_fhf2DeymXTgAll Articles