pedropaf / saas-ecom

Subscription support for ASP.NET MVC 5 apps using Stripe, including out-of-the-box view helpers. Available via NuGET
http://www.saasecom.org
Apache License 2.0
100 stars 41 forks source link

Object reference required for non-static field #11

Closed chriship closed 8 years ago

chriship commented 8 years ago

I am going through the tutorial here: http://code.tutsplus.com/tutorials/building-a-note-taking-software-as-a-service-using-aspnet-mvc-5-stripe-and-azure--cms-22922

In my Register post method, I have added:

await SubscriptionsFacade.SubscribeUserAsync(user, "Small");

But SubscribeUserAsync is not static so the call fails. Do I need to create a SubscriptionsFacade object somewhere?

EDIT: Just read down a little and realise I need to add the property! Sorry!