public IActionResult Put(int id, string gambar_sampul)
        {
            var RP = new Model.tb_Gambar_DVD.GambarDVD_Repo();

            try
            {
                RP.updateCoverDVD(id, gambar_sampul);
                return(Ok());
            }
            catch (Exception e)
            {
                return(BadRequest());
            }
        }
        public IActionResult Post([FromBody] Model.tb_Gambar_DVD.GambarDVD_Class value)
        {
            var RP = new Model.tb_Gambar_DVD.GambarDVD_Repo();

            try
            {
                RP.insertNewCover(value);
                return(Created("", value));
            }
            catch (Exception e)
            {
                return(BadRequest());
            }
        }
        public IActionResult Delete(int id)
        {
            var RP    = new Model.tb_Gambar_DVD.GambarDVD_Repo();
            var value = new Model.tb_Gambar_DVD.GambarDVD_Repo();


            if (RP.getCoverByIDDVD(id) != null)
            {
                RP.deleteCoverById(id);
                return(Ok("ID Terhapus"));
            }
            else
            {
                return(NotFound());
            }
        }
        public IActionResult GetByDVD(int id)
        {
            var cover           = new Model.tb_Gambar_DVD.GambarDVD_Class();
            var repositorycover = new Model.tb_Gambar_DVD.GambarDVD_Repo();

            try
            {
                cover = repositorycover.getCoverByIDDVD(id);
            }
            catch (Exception ex)
            {
            }

            if (cover == null)
            {
                return(NotFound());
            }
            else
            {
                return(Ok(cover));
            }
        }
        public IActionResult getAllCover()
        {
            var listcover       = new List <Model.tb_Gambar_DVD.GambarDVD_Class>();
            var repositorycover = new Model.tb_Gambar_DVD.GambarDVD_Repo();

            try
            {
                listcover = repositorycover.getAllCover();
            }
            catch (Exception ex)
            {
            }

            if (listcover == null)
            {
                return(NotFound());
            }
            else
            {
                return(Ok(listcover));
            }
        }