public async Task <IActionResult> Edit(int id, [Bind("ID,Ime,Prezime,DatumRodjenja,eMail")] PrijavaRute prijavaRute)
        {
            if (id != prijavaRute.ID)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(prijavaRute);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!PrijavaRuteExists(prijavaRute.ID))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            return(View(prijavaRute));
        }
        public async Task <IActionResult> Create([Bind("ID,Ime,Prezime,Datum,eMail")] PrijavaRute prijavaRute)
        {
            if (ModelState.IsValid)
            {
                _context.Add(prijavaRute);
                await _context.SaveChangesAsync();

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