public async Task<IActionResult> UpdateGenre(int id, [FromBody] GenreViewModel model)
        {
            var genre = await _genreService.Update(id, model.ToDTO());

            var genreViewModel = genre.ToViewModel();

            return Ok(genreViewModel);
        }
        public async Task<IActionResult> CreateGenre(GenreViewModel model)
        {
            var genre = await _genreService.Create(model.ToDTO());

            var genreViewModel = genre.ToViewModel();

            return Created("post", genreViewModel);
        }