I'm creating a solution for an online store in ASP.net MVC5. My solution consists of four Projects,
Store.Data for my database entities, edmx file and partial classes for products,
Store.POS is the mobile app for making payments, a point of sale, as the name suggests.
Store.Admin for handling inventory management, updating new products and prices and viewing sales and generating reports.
Store.Client is the online store.
All the projects use one database, that means a similar connection string in the web.config for each web project, and I'm using Web API for the mobile app.
My problem is
How do I make one folder accessible between Store.Admin and Store.Client, that will store images for products? Store.Admin creates products and uploads images and Store.Client reads those images
Apparently Store.Admin and Store.Client was one project, but I split the two because even managing Areas was making one project more cumbersome. That is why I had to split to make my code more manageable.
I tried a number of solutions including this one Two MVC projects - Image sharing
and the solution is suggesting that i go back to Areas
It'll be ok if i can access a Product image, by this line example, in the partial class of Product, ID being the ID from DB, and "~/Images/" being the shared folder that i need to access between these projects
public string ImagePath => $"~/Images/{ID}/";