C#C
C#15mo ago
reeeeeee

Multilayer architecture - explanation?

tl;dr: Have been mostly working on existing projects and have some problems in early stages of the architecture development.

Hey all!
I would need some additional explanation on how do you usually approach the multilayer architecture. I came across one early project which already had some of the projects made, but idk why and what should even be there (lets call this project
ExplainMe
.

So I have 4 "project" inside:
ExplainMe
(controllers),
ExplainMe.Core
(currently empty),
ExplainMe.Data
(entities),
ExplainMe.EF
dbContext..

Lets say I would like to implement an API request
url/api/user?name=john

  • Create
    UserController
    inside
    ExplainMe.Controllers
    .
  • Create
    UserService
    inside
    ExplainMe.Core.Services
    (i assume?).
  • what now? Which class am I missing and where? somewhere should probably be
    IUserService
    , but where?
Was this page helpful?