Index: PostgreSqlDotnetCore/Controllers/BlogController.cs
===================================================================
--- PostgreSqlDotnetCore/Controllers/BlogController.cs	(revision 63bd77035c9fe0927b0840983e7b59ef2beb7036)
+++ PostgreSqlDotnetCore/Controllers/BlogController.cs	(revision d6040ef6cd58a54b3bdd9c77a26c8a6ed428662e)
@@ -11,20 +11,41 @@
     {
         public BlogController(UserManager<IdentityUser> userManager) : base(userManager)
-        {
+
+        {
+            
         }
 
         // GET: Customer
-        public async Task<ActionResult> IndexAsync()
-        {
-            // check for permission
+        /* public async Task<ActionResult> IndexAsync()
+         {
+             // check for permission
+             bool isAuthenticated = User.Identity.IsAuthenticated;
+             if (!isAuthenticated)
+             {
+                 return RedirectToAction("AccessDenied", "Error");
+             }
+             //return View(Enumerable.Empty<UsersClass>());
+             return View(db.BlogPostControllerObj.ToList());
+         }
+        */
+
+        public async Task<ActionResult> Index()
+        {
+            // Проверка за автентикација
             bool isAuthenticated = User.Identity.IsAuthenticated;
+
             if (!isAuthenticated)
             {
                 return RedirectToAction("AccessDenied", "Error");
             }
-            //return View(Enumerable.Empty<UsersClass>());
-            return View(db.BlogPostControllerObj.ToList());
-        }
-
+
+            // Список на блог постови
+            var blogPosts = await db.BlogPostControllerObj.ToListAsync();
+
+            // Предавање на ViewBag за проверка на автентикација
+            ViewBag.isAuthenticated = isAuthenticated;
+
+            return View(blogPosts);
+        }
         // GET: Customer/Details/5
         public async Task<ActionResult> DetailsAsync(int? id)
Index: PostgreSqlDotnetCore/Controllers/CityController.cs
===================================================================
--- PostgreSqlDotnetCore/Controllers/CityController.cs	(revision 63bd77035c9fe0927b0840983e7b59ef2beb7036)
+++ PostgreSqlDotnetCore/Controllers/CityController.cs	(revision d6040ef6cd58a54b3bdd9c77a26c8a6ed428662e)
@@ -16,14 +16,16 @@
         // GET: Customer
         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());
-        }
+         {
+             // 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
Index: PostgreSqlDotnetCore/Controllers/ProductsController.cs
===================================================================
--- PostgreSqlDotnetCore/Controllers/ProductsController.cs	(revision 63bd77035c9fe0927b0840983e7b59ef2beb7036)
+++ PostgreSqlDotnetCore/Controllers/ProductsController.cs	(revision d6040ef6cd58a54b3bdd9c77a26c8a6ed428662e)
@@ -30,4 +30,5 @@
             // set if is authenticated
             ViewBag.isAuthenticated = await getCrrentUser();
+            ViewBag.hasAccess = await checkAuthorizationAsync();
             if (!String.IsNullOrEmpty(searchString))
             {
Index: PostgreSqlDotnetCore/Controllers/VetCenterController.cs
===================================================================
--- PostgreSqlDotnetCore/Controllers/VetCenterController.cs	(revision 63bd77035c9fe0927b0840983e7b59ef2beb7036)
+++ PostgreSqlDotnetCore/Controllers/VetCenterController.cs	(revision d6040ef6cd58a54b3bdd9c77a26c8a6ed428662e)
@@ -3,4 +3,5 @@
 using Microsoft.EntityFrameworkCore;
 using PostgreSqlDotnetCore.Models;
+using Microsoft.AspNetCore.Mvc.Rendering;
 using System.Data;
 using System.Net;
@@ -12,14 +13,36 @@
         public VetCenterController(UserManager<IdentityUser> userManager) : base(userManager)
         {
-
-            // set if is authenticated
-            ViewBag.isAuthenticated = new UsersClass();
-        }
+        }
+
+         public async Task<ActionResult> Create()
+         {
+             UsersClass customerClass = await checkAuthorizationSpecificRoleAsync(RoleConstants.Admin);
+             if (customerClass == null)
+             {
+                 return RedirectToAction("AccessDenied", "Error");
+             }
+             var citiess = await db.CitiesObj.ToListAsync();
+
+             ViewBag.Citiess = new SelectList(citiess, "id", "name");
+
+             return View();
+         }
 
         // GET: Customer
+        /* public ActionResult Index()
+         {
+             return View(db.VetCentersObj.ToList());
+         }*/
+
         public ActionResult Index()
         {
-            return View(db.VetCentersObj.ToList());
-        }
+            var vetCenters = db.VetCentersObj.ToList();
+
+            // Составување на списокот на ветеринарни центри и проверка на автентикацијата
+            ViewBag.isAuthenticated = User.Identity.IsAuthenticated;
+
+            return View(vetCenters);
+        }
+
 
         // GET: Customer/Details/5
@@ -39,14 +62,14 @@
 
         // GET: Customer/Create
-        public async Task<ActionResult> CreateAsync()
-        {
-            // check for permission
-            UsersClass customerClass = await checkAuthorizationSpecificRoleAsync(RoleConstants.Admin);
-            if (customerClass == null)
-            {
-                return RedirectToAction("AccessDenied", "Error");
-            }
-            return View();
-        }
+        /*  public async Task<ActionResult> CreateAsync()
+          {
+              // check for permission
+              UsersClass customerClass = await checkAuthorizationSpecificRoleAsync(RoleConstants.Admin);
+              if (customerClass == null)
+              {
+                  return RedirectToAction("AccessDenied", "Error");
+              }
+              return View();
+          }*/
 
         // POST: Customer/Create
@@ -55,4 +78,6 @@
         [HttpPost]
         [ValidateAntiForgeryToken]
+ 
+
         public ActionResult Create([Bind(include: "id,name,adress,description,workinghours,phonenumber,latitude,longitude,citiesid")] VetCenter vetClass)
         {
@@ -85,4 +110,6 @@
                 return RedirectToAction("AccessDenied", "Error");
             }
+            var citiess = await db.CitiesObj.ToListAsync();
+            ViewBag.Citiess = new SelectList(citiess, "id", "name", vetClass.citiesid);
             return View(vetClass);
         }
@@ -93,14 +120,34 @@
         [HttpPost]
         [ValidateAntiForgeryToken]
-        public ActionResult Edit([Bind(include: "id,name,adress,description,workinghours,phonenumber,latitude,longitude,citiesid")] VetCenter vetClass)
+        /*
+         public  ActionResult Edit([Bind(include: "id,name,adress,description,workinghours,phonenumber,latitude,longitude,citiesid")] VetCenter vetClass)
+         {
+             if (ModelState.IsValid)
+             {
+                 db.Entry(vetClass).State = EntityState.Modified;
+                 db.SaveChanges();
+                 return RedirectToAction("Index");
+             }
+             return View(vetClass);
+         }*/
+
+        // POST: VetCenter/Edit/5
+
+        public async Task<ActionResult> Edit([Bind(include: "id,name,adress,description,workinghours,phonenumber,latitude,longitude,citiesid")] VetCenter vetClass)
         {
             if (ModelState.IsValid)
             {
                 db.Entry(vetClass).State = EntityState.Modified;
-                db.SaveChanges();
+                await db.SaveChangesAsync();
                 return RedirectToAction("Index");
             }
-            return View(vetClass);
-        }
+
+            var citiess = await db.CitiesObj.ToListAsync();
+            ViewBag.Citiess = new SelectList(citiess, "id", "name", vetClass.citiesid);
+
+            return View(vetClass);
+        }
+
+
 
         // GET: Customer/Delete/5
Index: PostgreSqlDotnetCore/Views/Blog/Details.cshtml
===================================================================
--- PostgreSqlDotnetCore/Views/Blog/Details.cshtml	(revision 63bd77035c9fe0927b0840983e7b59ef2beb7036)
+++ PostgreSqlDotnetCore/Views/Blog/Details.cshtml	(revision d6040ef6cd58a54b3bdd9c77a26c8a6ed428662e)
@@ -5,8 +5,8 @@
 }
 
-<h2>Details</h2>
-
+@*<h2>Одговори</h2>*@
+@*
 <div>
-    <h4>Blog post for consultations</h4>
+   <h4>Blog post for consultations</h4>
     <hr />
     <dl class="dl-horizontal">
@@ -33,4 +33,5 @@
             @Html.DisplayFor(model => model.description)
         </dd>
+        
         <dt>
             @Html.DisplayNameFor(model => model.users_id)
@@ -41,9 +42,12 @@
         </dd>
 
+
     </dl>
 </div>
+*@
+
 <hr/>
 <div>
-    <h4>Blog post anwers</h4>
+    <h2>Answers</h2>
     <hr />
 
Index: PostgreSqlDotnetCore/Views/Blog/Index.cshtml
===================================================================
--- PostgreSqlDotnetCore/Views/Blog/Index.cshtml	(revision 63bd77035c9fe0927b0840983e7b59ef2beb7036)
+++ PostgreSqlDotnetCore/Views/Blog/Index.cshtml	(revision d6040ef6cd58a54b3bdd9c77a26c8a6ed428662e)
@@ -47,5 +47,5 @@
         <td>
             @Html.ActionLink("Edit", "Edit", new { id = item.id }) |
-            @Html.ActionLink("Details", "Details", new { id = item.id }) |
+            @Html.ActionLink("Answers", "Details", new { id = item.id }) |
             @Html.ActionLink("Delete", "Delete", new { id = item.id })
         </td>
Index: PostgreSqlDotnetCore/Views/Products/Index.cshtml
===================================================================
--- PostgreSqlDotnetCore/Views/Products/Index.cshtml	(revision 63bd77035c9fe0927b0840983e7b59ef2beb7036)
+++ PostgreSqlDotnetCore/Views/Products/Index.cshtml	(revision d6040ef6cd58a54b3bdd9c77a26c8a6ed428662e)
@@ -60,5 +60,5 @@
 </style>
 <h2>All type of products</h2>
-@if (SignInManager.IsSignedIn(User))
+@if (SignInManager.IsSignedIn(User) && ViewBag.hasAccess != null)
 {
     <p>
Index: PostgreSqlDotnetCore/Views/VetCenter/Create.cshtml
===================================================================
--- PostgreSqlDotnetCore/Views/VetCenter/Create.cshtml	(revision 63bd77035c9fe0927b0840983e7b59ef2beb7036)
+++ PostgreSqlDotnetCore/Views/VetCenter/Create.cshtml	(revision d6040ef6cd58a54b3bdd9c77a26c8a6ed428662e)
@@ -8,121 +8,127 @@
 
 
-@using (Html.BeginForm()) 
+@using (Html.BeginForm())
 {
     @Html.AntiForgeryToken()
-    
-<div class="form-horizontal">
-    <h4>VetCenter</h4>
-    <hr />
-    @Html.ValidationSummary(true, "", new { @class = "text-danger" })
-    <div class="form-group">
-        @Html.LabelFor(model => model.name, htmlAttributes: new { @class = "control-label col-md-2" })
-        <div class="col-md-10">
-            @Html.EditorFor(model => model.name, new { htmlAttributes = new { @class = "form-control" } })
-            @Html.ValidationMessageFor(model => model.name, "", new { @class = "text-danger" })
+
+    <div class="form-horizontal">
+        <h4>VetCenter</h4>
+        <hr />
+        @Html.ValidationSummary(true, "", new { @class = "text-danger" })
+        <div class="form-group">
+            @Html.LabelFor(model => model.name, htmlAttributes: new { @class = "control-label col-md-2" })
+            <div class="col-md-10">
+                @Html.EditorFor(model => model.name, new { htmlAttributes = new { @class = "form-control" } })
+                @Html.ValidationMessageFor(model => model.name, "", new { @class = "text-danger" })
+            </div>
+        </div>
+
+        <div class="form-group">
+            @Html.LabelFor(model => model.adress, htmlAttributes: new { @class = "control-label col-md-2" })
+            <div class="col-md-10">
+                @Html.EditorFor(model => model.adress, new { htmlAttributes = new { @class = "form-control" } })
+                @Html.ValidationMessageFor(model => model.adress, "", new { @class = "text-danger" })
+            </div>
+        </div>
+        <div class="form-group">
+            @Html.LabelFor(model => model.description, htmlAttributes: new { @class = "control-label col-md-2" })
+            <div class="col-md-10">
+                @Html.EditorFor(model => model.description, new { htmlAttributes = new { @class = "form-control" } })
+                @Html.ValidationMessageFor(model => model.description, "", new { @class = "text-danger" })
+            </div>
+        </div>
+        <div class="form-group">
+            @Html.LabelFor(model => model.workinghours, htmlAttributes: new { @class = "control-label col-md-2" })
+            <div class="col-md-10">
+                @Html.EditorFor(model => model.workinghours, new { htmlAttributes = new { @class = "form-control" } })
+                @Html.ValidationMessageFor(model => model.workinghours, "", new { @class = "text-danger" })
+            </div>
+        </div>
+
+        <div class="form-group">
+            @Html.LabelFor(model => model.phonenumber, htmlAttributes: new { @class = "control-label col-md-2" })
+            <div class="col-md-10">
+                @Html.EditorFor(model => model.phonenumber, new { htmlAttributes = new { @class = "form-control" } })
+                @Html.ValidationMessageFor(model => model.phonenumber, "", new { @class = "text-danger" })
+            </div>
+        </div>
+        <div class="form-group">
+            @Html.LabelFor(model => model.latitude, htmlAttributes: new { @class = "control-label col-md-2" })
+            <div class="col-md-10">
+                @Html.EditorFor(model => model.latitude, new { htmlAttributes = new { @class = "form-control" } })
+                @Html.ValidationMessageFor(model => model.latitude, "", new { @class = "text-danger" })
+            </div>
+        </div>
+        <div class="form-group">
+            @Html.LabelFor(model => model.longitude, htmlAttributes: new { @class = "control-label col-md-2" })
+            <div class="col-md-10">
+                @Html.EditorFor(model => model.longitude, new { htmlAttributes = new { @class = "form-control" } })
+                @Html.ValidationMessageFor(model => model.longitude, "", new { @class = "text-danger" })
+            </div>
+        </div>
+        @*<div class="form-group">
+    @Html.LabelFor(model => model.citiesid, htmlAttributes: new { @class = "control-label col-md-2" })
+    <div class="col-md-10">
+    @Html.EditorFor(model => model.citiesid, new { htmlAttributes = new { @class = "form-control" } })
+    @Html.ValidationMessageFor(model => model.citiesid, "", new { @class = "text-danger" })
+    </div>
+    </div>*@
+
+        @*  <div class="form-group">
+    <label for="citiesid">Citie:</label>
+    <select class="form-control" id="citiesid" name="citiesid">
+    <option value="">Select city</option>
+    <option value="1">Скопје</option>
+    <option value="1">Охрид</option>
+    <option value="1">Скопје</option>
+    <option value="1">Берово</option>
+    <option value="2">Битола</option>
+    <option value="3">Богданци</option>
+    <option value="4">Валандово</option>
+    <option value="5">Велес</option>
+    <option value="6">Виница</option>
+    <option value="7">Гевгелија</option>
+    <option value="8">Гостивар</option>
+    <option value="9">Дебар</option>
+    <option value="10">Делчево</option>
+    <option value="11">Демир Капија</option>
+    <option value="12">Демир Хисар</option>
+    <option value="13">Кавадарци</option>
+    <option value="14">Кичево</option>
+    <option value="15">Кочани</option>
+    <option value="16">Кратово</option>
+    <option value="17">Крива Паланка</option>
+    <option value="18">Крушево</option>
+    <option value="19">Куманово</option>
+    <option value="20">Македонска Каменица</option>
+    <option value="21">Македонски Брод</option>
+    <option value="22">Неготино</option>
+    <option value="23">Охрид</option>
+    <option value="24">Пехчево</option>
+    <option value="25">Прилеп</option>
+    <option value="26">Пропиштип</option>
+    <option value="27">Радовиш</option>
+    <option value="28">Ресен</option>
+    <option value="29">Свети Николе</option>
+    <option value="30">Скопје</option>
+    <option value="31">Струга</option>
+    <option value="32">Струмица</option>
+    <option value="33">Тетово</option>
+    <option value="34">Штип</option>
+    </select>
+    </div>
+    *@
+
+        <div class="form-group">
+            <label asp-for="citiesid" class="control-label"></label>
+            <select asp-for="citiesid" asp-items="ViewBag.Citiess" class="form-control"></select>
+            <span asp-validation-for="citiesid" class="text-danger"></span>
+        </div>
+        <div class="form-group">
+            <div class="col-md-offset-2 col-md-10">
+                <input type="submit" value="Create" class="btn btn-default" />
+            </div>
         </div>
     </div>
-
-    <div class="form-group">
-        @Html.LabelFor(model => model.adress, htmlAttributes: new { @class = "control-label col-md-2" })
-        <div class="col-md-10">
-            @Html.EditorFor(model => model.adress, new { htmlAttributes = new { @class = "form-control" } })
-            @Html.ValidationMessageFor(model => model.adress, "", new { @class = "text-danger" })
-        </div>
-    </div>
-    <div class="form-group">
-        @Html.LabelFor(model => model.description, htmlAttributes: new { @class = "control-label col-md-2" })
-        <div class="col-md-10">
-            @Html.EditorFor(model => model.description, new { htmlAttributes = new { @class = "form-control" } })
-            @Html.ValidationMessageFor(model => model.description, "", new { @class = "text-danger" })
-        </div>
-    </div>
-    <div class="form-group">
-        @Html.LabelFor(model => model.workinghours, htmlAttributes: new { @class = "control-label col-md-2" })
-        <div class="col-md-10">
-            @Html.EditorFor(model => model.workinghours, new { htmlAttributes = new { @class = "form-control" } })
-            @Html.ValidationMessageFor(model => model.workinghours, "", new { @class = "text-danger" })
-        </div>
-    </div>
-
-    <div class="form-group">
-        @Html.LabelFor(model => model.phonenumber, htmlAttributes: new { @class = "control-label col-md-2" })
-        <div class="col-md-10">
-            @Html.EditorFor(model => model.phonenumber, new { htmlAttributes = new { @class = "form-control" } })
-            @Html.ValidationMessageFor(model => model.phonenumber, "", new { @class = "text-danger" })
-        </div>
-    </div>
-    <div class="form-group">
-        @Html.LabelFor(model => model.latitude, htmlAttributes: new { @class = "control-label col-md-2" })
-        <div class="col-md-10">
-            @Html.EditorFor(model => model.latitude, new { htmlAttributes = new { @class = "form-control" } })
-            @Html.ValidationMessageFor(model => model.latitude, "", new { @class = "text-danger" })
-        </div>
-    </div>
-    <div class="form-group">
-        @Html.LabelFor(model => model.longitude, htmlAttributes: new { @class = "control-label col-md-2" })
-        <div class="col-md-10">
-            @Html.EditorFor(model => model.longitude, new { htmlAttributes = new { @class = "form-control" } })
-            @Html.ValidationMessageFor(model => model.longitude, "", new { @class = "text-danger" })
-        </div>
-    </div>
-    @*<div class="form-group">
-            @Html.LabelFor(model => model.citiesid, htmlAttributes: new { @class = "control-label col-md-2" })
-            <div class="col-md-10">
-                @Html.EditorFor(model => model.citiesid, new { htmlAttributes = new { @class = "form-control" } })
-                @Html.ValidationMessageFor(model => model.citiesid, "", new { @class = "text-danger" })
-            </div>
-        </div>*@
-
-    <div class="form-group">
-        <label for="citiesid">Citie:</label>
-        <select class="form-control" id="citiesid" name="citiesid">
-            <option value="">Select city</option>
-            <option value="1">Скопје</option>
-            <option value="1">Охрид</option>
-            <option value="1">Скопје</option>
-           @*  <option value="1">Берово</option>
-            <option value="2">Битола</option>
-            <option value="3">Богданци</option>
-            <option value="4">Валандово</option>
-            <option value="5">Велес</option>
-            <option value="6">Виница</option>
-            <option value="7">Гевгелија</option>
-            <option value="8">Гостивар</option>
-            <option value="9">Дебар</option>
-            <option value="10">Делчево</option>
-            <option value="11">Демир Капија</option>
-            <option value="12">Демир Хисар</option>
-            <option value="13">Кавадарци</option>
-            <option value="14">Кичево</option>
-            <option value="15">Кочани</option>
-            <option value="16">Кратово</option>
-            <option value="17">Крива Паланка</option>
-            <option value="18">Крушево</option>
-            <option value="19">Куманово</option>
-            <option value="20">Македонска Каменица</option>
-            <option value="21">Македонски Брод</option>
-            <option value="22">Неготино</option>
-            <option value="23">Охрид</option>
-            <option value="24">Пехчево</option>
-            <option value="25">Прилеп</option>
-            <option value="26">Пропиштип</option>
-            <option value="27">Радовиш</option>
-            <option value="28">Ресен</option>
-            <option value="29">Свети Николе</option>
-            <option value="30">Скопје</option>
-            <option value="31">Струга</option>
-            <option value="32">Струмица</option>
-            <option value="33">Тетово</option>
-            <option value="34">Штип</option> *@
-        </select>
-    </div>
-
-    <div class="form-group">
-        <div class="col-md-offset-2 col-md-10">
-            <input type="submit" value="Create" class="btn btn-default" />
-        </div>
-    </div>
-</div>
 }
 
Index: PostgreSqlDotnetCore/Views/VetCenter/Edit.cshtml
===================================================================
--- PostgreSqlDotnetCore/Views/VetCenter/Edit.cshtml	(revision 63bd77035c9fe0927b0840983e7b59ef2beb7036)
+++ PostgreSqlDotnetCore/Views/VetCenter/Edit.cshtml	(revision d6040ef6cd58a54b3bdd9c77a26c8a6ed428662e)
@@ -75,5 +75,5 @@
         </div>
     </div> *@
-        <div class="form-group">
+      @*  <div class="form-group">
             <label for="citiesid">Citie:</label>
             <select class="form-control" id="citiesid" name="citiesid">
@@ -84,5 +84,10 @@
             </select>
         </div>
-
+        *@
+        <div class="form-group">
+            <label asp-for="citiesid" class="control-label"></label>
+            <select asp-for="citiesid" asp-items="ViewBag.Citiess" class="form-control"></select>
+            <span asp-validation-for="citiesid" class="text-danger"></span>
+        </div>
 
     <div class="form-group">
