public async Task <JObject> Post(Rating rat) { var userId = User.FindFirst("sub")?.Value; _logger.LogInformation("Adding new rating from " + User.Identity.Name); rat.IDUser = userId; var id = await TrueHomeContext.createRating(rat); return(JObject.Parse("{\"id\": " + id + ", \"UploadStatus\": " + 1 + "}")); }