public ActionResult GetVehicles() { StoredVehiclesDatabaseDbContext dbcontext = new StoredVehiclesDatabaseDbContext(); List <Vozilo> vozila = dbcontext.Vozila.ToList(); return(Json(vozila, JsonRequestBehavior.AllowGet)); }
// GET: Korisnici public ActionResult Index() { StoredVehiclesDatabaseDbContext dbcontext = new StoredVehiclesDatabaseDbContext(); List <Korisnik> korisnici = dbcontext.Korisnici.ToList(); return(View(korisnici)); }
public MarkaNaVoziloRepository() { dbcontext = new StoredVehiclesDatabaseDbContext(); }
public KorisniciRepository() { dbcontext = new StoredVehiclesDatabaseDbContext(); }