Im creating a POST API to insert data into my Walks table and it has two ForeginKey with Difficutlies and Regions table and this is my Walk model
public class Walk
{
public Guid Id { get; set; }
public string Name { get; set; }
public string Description { get; set; }
public double LengthInKm { get; set; }
public string? WalkImageUrl { get; set; }
public Guid DifficultyId { get; set; }
public Guid RegionId { get; set; }
public Difficulty Difficulty { get; set; }
public Region Region { get; set; }
}
I dont know why conflict happen because i checked the all the table and model. I seeded data in Regions and Difficulty and it’s still not work