public IActionResult Post([FromBody] Genre genre) { return(Json(db.CreateGenre(genre.Id, genre.Type))); }