Hello everyone
how to set value in model class properties get from appsettings.json file
C#
public class InputModel
{
public string StripeToken { get; set; }
public string StripeKey =-- Here how to set value get from appsetting.json file this is my model class
}
Sachin SinghRank #66 · 26.2K reputationPosted Nov 23, 2021, 1:04 AM EST
RohanRank #1,549 · 1K reputationPosted Nov 23, 2021, 2:04 AM EST
Sachin SinghRank #66 · 26.2K reputationPosted Nov 23, 2021, 3:15 AM EST
Same,
suppose the name of your Razor page is IndexModel