public IActionResult Delete(int id)
        {
            var razlog = _iRazlogService.GetById(id);

            if (razlog == null)
            {
                return(NotFound("Razlog ne postoji."));
            }

            if (razlog.Projekat != null)
            {
                var projekat = _iProjekatService.GetById(razlog.RazlogId);

                _iProjekatService.Delete(projekat);
            }

            if (razlog.Ispit != null)
            {
                var ispit = _iIspitService.GetById(razlog.RazlogId);

                _iIspitService.Delete(ispit);
            }

            if (razlog.ZavrsniRad != null)
            {
                var zavrsniRad = _iZavrsniRadService.GetById(razlog.RazlogId);

                _iZavrsniRadService.Delete(zavrsniRad);
            }

            _iRazlogService.Delete(razlog);

            return(new NoContentResult());
        }