Did you download from <a class="postlink" href="https://www.aspnetzero.com/Download">https://www.aspnetzero.com/Download</a>?
Use MVC HTTP attributes. You need to add Microsoft.AspNetCore.Mvc.Core if you're doing this in Application project. Here's an example:
// GET /tickets/12 - Retrieves a specific ticket
[HttpGet("/tickets/{id:long}")]
public async Task<TicketDto> GetTicket(long id)
{
// ...
}
It's vm.getCities(); not vm.getcities();
Put them in:
You need to be in an UnitOfWork when you call .FirstOrDefaultAsync(). You can first try the [UnitOfWork] attribute on a public virtual function. If that does not work, you need to inject and use IUnitOfWorkManager.
Can you try adding this in Startup.cs?
app.UseOpenIdConnectAuthentication(x =>
{
x.AuthenticationScheme = "oidc";
x.Authority = "https://sb-auth.smarthealthit.org/";
x.AutomaticAuthenticate = true;
x.CallbackPath = new PathString("/services/oauth2/success"); // redirect_uri
x.ClientId = "4*******";
x.ClientSecret = "********";
x.ResponseType = "code";
x.Scope.Add("email");
x.Scope.Add("openid");
x.Scope.Add("profile");
});
Disclaimer: I haven't tried this myself.
Oh, it looked like you were using the MVC 5.x version as your UserAppService was not up-to-date. Can you try a fresh template (which should work) and if it works, update the files in your project?
Add a column:
public Guid DeletionToken { get; set;
} = Guid.Empty;
Include it in unique index attribute. Set this with Guid.NewGuid() when deleting.
It builds and runs, right?