//[Authorize] public IActionResult Create(Categoria item) { _context.Categorias.Add(item); _context.SaveChanges(); return(CreatedAtRoute("GetCategoria", new { id = item.Id }, item)); }
public IActionResult Create(Audio item) { _context.Audios.Add(item); _context.SaveChanges(); return(CreatedAtRoute("GetAudio", new { id = item.Id }, item)); }