コード例 #1
0
        public void Izvrsi(int request)
        {
            var korisnik = _context.Korisnici.Find(request);

            if (korisnik == null)
            {
                throw new EntityNotFoundException(request, typeof(Korisnik));
            }

            _context.Remove(korisnik);

            _context.SaveChanges();
        }
コード例 #2
0
        public void Izvrsi(int request)
        {
            var kategorija = _context.Kategorije.Find(request);

            if (kategorija == null)
            {
                throw new EntityNotFoundException(request, typeof(Kategorija));
            }

            _context.Remove(kategorija);

            _context.SaveChanges();
        }
コード例 #3
0
        public void Izvrsi(int request)
        {
            var proizvod = _context.Proizvodi.Find(request);

            if (proizvod == null)
            {
                throw new EntityNotFoundException(request, typeof(Proizvod));
            }

            _context.Remove(proizvod);

            _context.SaveChanges();
        }
コード例 #4
0
        public void Izvrsi(int request)
        {
            var grupa = _context.Grupe.Find(request);

            if (grupa == null)
            {
                throw new EntityNotFoundException(request, typeof(Grupa));
            }

            _context.Remove(grupa);

            _context.SaveChanges();
        }