Categories
Mastering Development

ASP.NET Core how to randomly set property value

In ASP.NET Core, I need to set a property to a random string, but the random string will be generated from another property. The properties are public class State { public int Id {get;set;} public string Name {get;set;} public string Capital {get;set;} public string RandomCapital {get;set;} } Basically Capital has values state capitals as its […]