Building a Web App with ASP.NET Core, MVC, Entity Framework Core, Bootstrap, and Angular

  1. Getting Started
    1. Introduction
    2. Why ASP.NET Core?
    3. What Is ASP.NET Core?
    4. Installing ASP.NET Core?
    5. Hello World!
    6. Installing Visual Studio
    7. Creating a Project with Visual Studio
    8. Serving Your First File
    9. Summary
  2. HTML5 and CSS Basics
    1. Introduction
    2. What is HTML?
    3. HTML Basics
    4. HTML Forms
    5. CSS Basics
    6. CSS Naming
    7. The Box Model
    8. Summary
  3. Getting Started with JavaScript
    1. Introduction
    2. What is JavaScript?
    3. Add a JavaScript File
    4. JavaScript Events
    5. Using NPM (Node Package Manager)
    6. Introducing jQuery
    7. Practical jQuery
    8. Summary
  4. Using ASP.NET MVC
    1. Introduction
    2. What is MVC?
    3. First Controller/View
    4. Enabling MVC 6
    5. Creating a Layout
    6. Adding More Views
    7. Using Tag Helpers
    8. Razor Pages
    9. Implementing a Contact Page
    10. Model Binding
    11. Using Validation
    12. Adding a Service
    13. Summary
  5. Using Bootstrap to Prototype the App

Using ASP.NET MVC

Introduction

  • Supporting MVC 6 in ASP.NET Core 
  • Creating Controllers
  • Creating Views and Layouts
  • Using Model Validation
  • Tag Helpers

Model - View - Controller

  • Controller - The Logic of the App
  • Model - the data
  • View - Renders Data
  1. Create a controller called AppController.cs derives from Controller
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DutchTreat.Controllers
{
    public class AppController : Controller
    {
        public IActionResult Index()
        {
            //throw new InvalidOperationException("Bad things happened");
            return View();
        }
    }
}


 

Add comment

Loading