Index: PostgreSqlDotnetCore/Controllers/CityController.cs
===================================================================
--- PostgreSqlDotnetCore/Controllers/CityController.cs	(revision a3ce071e97bad04f989c769589a31427febe9ff3)
+++ PostgreSqlDotnetCore/Controllers/CityController.cs	(revision 2aea0fddc0f6d0c25f0d44044eeb2ec5930012b9)
@@ -19,39 +19,14 @@
             // check for permission
             UsersClass customerClass = await checkAuthorizationAsync();
-            ViewBag.isAuthenticated = User.Identity.IsAuthenticated;
-
             if (customerClass == null)
             {
                 return RedirectToAction("AccessDenied", "Error");
             }
-
-            var citiess = await db.CitiesObj.ToListAsync();
-            // проба на 23.08
-            ViewBag.OnlyAdminManager = await checkAuthorizationSpecificRoleAsync(RoleConstants.Admin) ?? await checkAuthorizationSpecificRoleAsync(RoleConstants.Manager);
-
-            return View(citiess);
+            //return View(Enumerable.Empty<UsersClass>());
+            return View(db.CitiesObj.ToList());
         }
 
-
-
-
-        /* public async Task<ActionResult> IndexAsync()
-         {
-             // check for permission
-             UsersClass customerClass = await checkAuthorizationAsync();
-             if (customerClass == null)
-             {
-                 return RedirectToAction("AccessDenied", "Error");
-             }
-             //return View(Enumerable.Empty<UsersClass>());
-             return View(db.CitiesObj.ToList());
-         }
-        */
-
-
-
         // GET: Customer/Details/5
-        //public ActionResult Details(int? id)
-        public async Task<ActionResult> Details(int? id)
+        public ActionResult Details(int? id)
         {
             if (id == null)
@@ -60,13 +35,8 @@
             }
             CitiesClass cityClass = db.CitiesObj.Find(id);
-            UsersClass customerClass = await getCrrentUser();
-            ViewBag.isAuthenticated = customerClass;
             if (cityClass == null)
             {
                 return RedirectToAction("NotExist", "Error");
             }
-            // no access for standard user
-            ViewBag.OnlyAdminManager = await checkAuthorizationSpecificRoleAsync(RoleConstants.Admin) ?? await checkAuthorizationSpecificRoleAsync(RoleConstants.Manager);
-
             return View(cityClass);
         }
@@ -78,11 +48,7 @@
         //}
 
-        //public ActionResult Create()
-        public async Task<ActionResult> CreateAsync()
+        public ActionResult Create()
         {
-            UsersClass customerClass = await getCrrentUser();
-            // set if is authenticated
-            ViewBag.isAuthenticated = customerClass;
-            ViewBag.OnlyAdminManager = await checkAuthorizationSpecificRoleAsync(RoleConstants.Admin) ?? await checkAuthorizationSpecificRoleAsync(RoleConstants.Manager);
+            
             return View();
         }
@@ -95,5 +61,4 @@
         public ActionResult Create([Bind(include: "id,name")] CitiesClass cityClass)
         {
-
             if (ModelState.IsValid)
             {
@@ -107,6 +72,5 @@
 
         // GET: Customer/Edit/5
-        //  public ActionResult Edit(int? id)
-        public async Task<ActionResult> Edit(int? id)
+        public ActionResult Edit(int? id)
         {
             if (id == null)
@@ -115,13 +79,8 @@
             }
             CitiesClass cityClass = db.CitiesObj.Find(id);
-            //22.08
-            ViewBag.isAuthenticated = await getCrrentUser();
             if (cityClass == null)
             {
                 return RedirectToAction("NotExist", "Error");
             }
-            // no access for standard user
-            ViewBag.OnlyAdminManager = await checkAuthorizationSpecificRoleAsync(RoleConstants.Admin) ?? await checkAuthorizationSpecificRoleAsync(RoleConstants.Manager);
-
             return View(cityClass);
         }
@@ -144,11 +103,6 @@
 
         // GET: Customer/Delete/5
-        // public ActionResult Delete(int? id)
-        public async Task<ActionResult> Delete(int? id)
+        public ActionResult Delete(int? id)
         {
-
-            UsersClass customerClass = await checkAuthorizationAsync();
-
-            ViewBag.isAuthenticated = await getCrrentUser();
             if (id == null)
             {
@@ -160,7 +114,4 @@
                 return RedirectToAction("NotExist", "Error");
             }
-            // no access for standard user
-            ViewBag.OnlyAdminManager = await checkAuthorizationSpecificRoleAsync(RoleConstants.Admin) ?? await checkAuthorizationSpecificRoleAsync(RoleConstants.Manager);
-
             return View(cityClass);
         }
@@ -185,8 +136,4 @@
             base.Dispose(disposing);
         }
-
-
-
-
     }
 }
