Index: PostgreSqlDotnetCore/Controllers/VetCenterController.cs
===================================================================
--- PostgreSqlDotnetCore/Controllers/VetCenterController.cs	(revision 67821048db84782043d1d0806ae4b689a699b950)
+++ 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
