public async Task <IActionResult> Create([Bind("ID,Name,Product,Quantity,SellDate,Price,ProductID")] Clients clients)
        {
            if (ModelState.IsValid)
            {
                _context.Add(clients);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(clients));
        }
        public async Task <IActionResult> AddOrEdit([Bind("KlijentID,Vlasnik,Ljubimac,Vrsta,Adresa")] Clients clients)
        {
            if (ModelState.IsValid)
            {
                if (clients.KlijentID == 0)
                {
                    _context.Add(clients);
                }
                else
                {
                    _context.Update(clients);
                }
                await _context.SaveChangesAsync();

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