Base solution for your next web application
BLACK FRIDAY
From Nov 21
To Dec 1
XXDAYS : XXHRS : XXMIN : XXSEC
SAVE UP TO$3K
Also valid for the
existing customers!
Open Closed

ApplicationService Question! #1450


0
korigoth created

Hey,

I didn't know how to do SEO with SPA so I'm migrating the website that I've made with ABP SPA to ABP MPA. If anyone did SEO with ABP SPA, I 'd be sincerely grateful for some help! ;)

But here is the question for the ApplicationService. Like I said it was a SPA website, so all my logic is in ApplicationServices.

Can I use Application layer like I was using it with AJAX request? Because i think that all the filters that are configured will be useless by directly calling the application service if i'm not mistaken?

I will need IPermissionChecker and IAbpSession and implement my logic in each controller action ? Or do I lack knowledge about ABP and MVC Controller?

thx!

EDIT: Apparently, the AbpAuthorize filter is called when I Injected the IMyService in MVC Controller then using it in my childaction. How can it be called if I directly use the method and it's not called by ABP?

like _myService.Execute() in MVC is firing the AbpAuthorize! am I right?


1 Answer(s)
  • 0
    ismcagdas created
    Support Team

    Hi,

    You are right. By the way, you can use [AbpMvcAuthorize] for MVC controllers and actions.