Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "aaron"

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:

  • src\solution.Web.Mvc\wwwroot\metronic\assets\search\css
  • src\solution.Web.Mvc\wwwroot\metronic\assets\search\scripts You can see the other components in metronic\assets with a similar structure.

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.

Answer

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.

Answer

It builds and runs, right?

Check that you have this line in *.Web.Core.csproj:

<PackageReference Include="Abp.AspNetCore" Version="3.0.0" />

and this line in *.Web.Public.csproj

<ProjectReference Include="..\*.Web.Core\*.Web.Core.csproj" />
Showing 1391 to 1400 of 1543 entries