© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•13mo ago•
36 replies
Anna Papciak

How to properly set up view in MVC pattern?

Hello everyone, I'm studing MVC pattern in asp.net core. Could you help me how to set up view to my project?
1. I created libraries for model, repositories, and made crud/controllers in project call TNAI_FinalProject.Api as Web Api
2. Can I use this libraries to pass data on view?
3. If yes how to connect view (in visual studio for example) to these, to don't need to make over code.
4. If no, how should it looks.
5. What changes should I make in program.cs of TNAI.Web and TNAI.Api?
6. Could you describe me in example, how to code it?

I attached my project structure, and couple of code.

I guess it's really noob question, so plz don't judge lol.
image.png
image.png
image.png
image.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

How do I properly set up TcpClient
C#CC# / help
12mo ago
❔ MVC Tuple to View problem
C#CC# / help
3y ago
✅ Trying to set up Google OAuth SSO in ASP.NET (No MVC)
C#CC# / help
2y ago