I am trying to develop a business application, and I am having difficulty in deciding the structure of it.
I have decided to make the project using react for front end. Asp.net core web api and asp.net core class library in C#
I have decided to make the Business Logic i.e Classes in class Library in a BL Folder.
And Database classes for database functions using EF Core in a DL folder. It is also in class Library.
And interfaces for database functions in a DL Interface folder. It is also in class Library.
And Service class for calling database functions using interfaces with some logic. Like for example checking if the product already exists before adding it. So I don’t have to call IsAlreadyPresent() in the Add() function to maintain Single Responsibility of Function.
It is also in class library.
And then I will call the Service class to access the methods Like GetProduct() in asp.net web api…
So in this way the sole purpose of this project is to RESTful services.. and no database function or business logic of classes, or business logic of dealing with database operations like transaction probably.
And then I am planning to deal with frontend in a seperate way using any Library( For now React next js, and after that asp.net core web application)
May someone kindly provide feedback on my structure of application?
I have tried to write in detail about my structure, if additional details are required I will edit my question.