DotNet Framework Tutorials

Introduction

Welcome to this guide to get started with the DotNet Framework.

This tutorial will cover the basics of the framework, focusing on the Core Framework.

Core Concepts

The Core Framework provides a foundational structure for building .NET applications.

Key concepts include: .

Creating a Simple Controller

Let's create a simple controller to demonstrate the concept.

This controller will handle a request for a 'Hello World' message.

Controller

Here's a basic controller:


                    [Controller]
                    public class HelloWorldController : Controller
                    {
                        public override void HandleRequest(RequestRequest request)
                        {
                            // This is where you would handle the request.
                            Console.WriteLine("Hello World!");
                        }
                    }
                

Model

Let's create a simple model to represent a 'Hello World' message.

Model

Here's a simple model:


                    public class HelloWorldModel
                    {
                        public string Message { get; set; }
                    }
                

Views

Let's create a view to display the model and controller.

View

Let's create a view:


                    [View]
                    public class HelloWorldView : View
                    {
                        public override void Render()
                        {
                            //Render the model and controller.
                            Console.WriteLine("Rendering data");
                        }
                    }