Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove duplicate service injections from views #7596

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

atiq-bs23
Copy link
Contributor

@atiq-bs23 atiq-bs23 commented Feb 20, 2025

Cleaned up views by removing redundant @inject directives for IGenericAttributeService, IPermissionService and IWorkContext, as they are already injected in _ViewImports.cshtml. This improves maintainability and reduces duplication.

@skoshelev
Copy link
Contributor

Hi, @atiq-bs23!

That's not all, for example, you included IPermissionService in _ViewImports but did not remove its injection in other views, such as \Nop.Web\Areas\Admin\Views\Home\Index.cshtml :)

@atiq-bs23
Copy link
Contributor Author

@skoshelev let me remove this from views then

@atiq-bs23
Copy link
Contributor Author

@skoshelev PR updated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants