public async Task <Studenti> AddStudent(Studenti student)
        {
            var result = await _context.Studenti.AddAsync(student);

            await _context.SaveChangesAsync();

            return(result.Entity);
        }
        public async Task <Predmeti> AddCourse(Predmeti course)
        {
            var result = await _context.Predmeti.AddAsync(course);

            await _context.SaveChangesAsync();

            return(result.Entity);
        }
        public async Task <IActionResult> Create([Bind("Id,Ime,Prezime,JMBG,MestoRođenja")] Studenti studenti)
        {
            if (ModelState.IsValid)
            {
                _context.Add(studenti);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(studenti));
        }