1
0

ASP.NET version start

This commit is contained in:
Michael Gordeev
2019-10-10 19:12:54 +03:00
parent def2b51164
commit 3ec8522eb5
56 changed files with 33139 additions and 0 deletions
@@ -0,0 +1,10 @@
using Microsoft.AspNetCore.Mvc;
namespace MyWebsite.Controllers
{
public class ContactsController : Controller
{
public IActionResult Index() =>
View();
}
}
@@ -0,0 +1,13 @@
using Microsoft.AspNetCore.Mvc;
namespace MyWebsite.Controllers
{
public class GalleryController : Controller
{
public IActionResult Index() =>
View();
public IActionResult Details(string id) =>
View(model: id);
}
}
@@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
namespace MyWebsite.Controllers
{
public class HelloWorldController : Controller
{
public string Index()
{
return "Hi there, bitch!";
}
}
}
@@ -0,0 +1,43 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using MyWebsite.Models;
namespace MyWebsite.Controllers
{
public class HomeController : Controller
{
public IActionResult Index()
{
return View();
}
public IActionResult About()
{
ViewData["Message"] = "Your application description page.";
return View();
}
public IActionResult Contact()
{
ViewData["Message"] = "Your contact page.";
return View();
}
public IActionResult Privacy()
{
return View();
}
[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
public IActionResult Error()
{
return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier });
}
}
}