示例#1
0
        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));
        }
示例#3
0
 public MarkaNaVoziloRepository()
 {
     dbcontext = new StoredVehiclesDatabaseDbContext();
 }
示例#4
0
 public KorisniciRepository()
 {
     dbcontext = new StoredVehiclesDatabaseDbContext();
 }