net 5.0 => net 6.0

parent a5a0c3ef
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using PhoneStore.Models; using PhoneStore.Models;
using PhoneStore.ViewModels; using PhoneStore.ViewModels;
...@@ -14,6 +15,7 @@ namespace PhoneStore.Controllers ...@@ -14,6 +15,7 @@ namespace PhoneStore.Controllers
} }
[HttpGet] [HttpGet]
[Authorize]
public IActionResult Create() public IActionResult Create()
{ {
return View(); return View();
......
<Project Sdk="Microsoft.NET.Sdk.Web"> <Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup> <PropertyGroup>
<TargetFramework>net5.0</TargetFramework> <TargetFramework>net6.0</TargetFramework>
<LangVersion>10</LangVersion>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
......
{ {
"ConnectionStrings": { "ConnectionStrings": {
"DefaultConnection": "Server=localhost;Port=54320;database=lesson68;Username=postgres;Password=postgres;" "DefaultConnection": "Server=localhost;Port=5432;database=lesson68;Username=postgres;Password=postgres;"
}, },
"Logging": { "Logging": {
"LogLevel": { "LogLevel": {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment