Esempio n. 1
0
        public async Task <IActionResult> Update(int id, PeliculaDTO model)
        {
            var peliculaModel = _mapper.Map <Pelicula>(model);

            var result = _repo.IsExists(id);

            if (!result)
            {
                return(NotFound());
            }

            peliculaModel.PeliculaID = id;

            var isSuccess = _repo.Update(peliculaModel);

            return(NoContent());
        }