Ejemplo n.º 1
0
        public CinemaImages CreateImage(CIWM cinemaim)
        {
            CinemaImages cinemaImage = new CinemaImages();

            cinemaImage.CinemaId    = cinemaim.CinemaId;
            cinemaImage.CinemaImage = ConvertToByte(cinemaim.Path);

            return(unitOfWork.CinemaImages.Create(cinemaImage));
        }
        public IActionResult PostCinemaImages([FromBody] CIWM cinemaim)
        {
            if (cinemaim == null)
            {
                return(BadRequest());
            }
            else
            {
                var image = _cinemaImageService.CreateImage(cinemaim);

                return(Ok(image));
            }
        }