I am working on an e-commerce application where I have two separate ASP.NET MVC projects:
- AdminPanel: used by admins to manage items
- Website: public-facing site for users to view items
Both projects are hosted on the same server, with the AdminPanel
being a subdomain (e.g. admin.mydomain
), and the Website being the main domain (e.g. www.mydomain
).
Solution folder structure:
- - AdminPanel (ASP.NET MVC project)
- Website (ASP.NET MVC project)
- MyApp.Models (class library for models)
- MyApp.DataAccess (class library for DbContext and repositories)
- MyApp.Services (class library for business logic)
- MyApp.ViewModels (class library for shared view models)
- MyApp.Common (class library for enums, validation, utilities, etc.)
- SharedResources (folder for shared images)
I want to save images in admin website and retrieve it in frontend website.