public ActionResult <VoteModel> CreateVoteManager(int songId, [FromBody] VoteModel vote) { try { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } var newVote = service.CreateVoteManager(songId, vote); return(Created($"api/songs/{songId}/votes/{vote.Id}", newVote)); } catch (Exception) { throw; } }