Пример #1
0
        public IActionResult Insere([FromBody] SerieModel model)
        {
            model.Id = _repositorioSerie.ProximoId();

            Serie serie = model.ToSerie();

            _repositorioSerie.Insere(model.ToSerie());
            return(Created(" ", serie));
        }
Пример #2
0
 public IActionResult Atualizar(int id, [FromBody] SerieModel model)
 {
     _repositorioSerie.Atualiza(id, model.ToSerie()); // Pesquisar AutoMapper
     return(NoContent());
 }