почти все

This commit is contained in:
antoc0der 2024-04-08 19:40:25 +04:00
parent 552de0d984
commit ee46e60a11
81 changed files with 9 additions and 10 deletions

View File

@ -1,3 +0,0 @@
@using APIClient
@using APIClient.Models
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers

View File

@ -1,10 +1,10 @@
using APIClient.Models;
using FlowerShopClientApp.Models;
using FlowerShopContracts.BindingModels;
using FlowerShopContracts.ViewModels;
using Microsoft.AspNetCore.Mvc;
using System.Diagnostics;
namespace APIClient.Controllers
namespace FlowerShopClientApp.Controllers
{
public class HomeController : Controller
{
@ -83,8 +83,7 @@ namespace APIClient.Controllers
{
throw new Exception("Введите логин и пароль");
}
APIClient.Client =
APIClient.GetRequest<ClientViewModel>($"api/client/login?login={login}&password={password}");
APIClient.Client = APIClient.GetRequest<ClientViewModel>($"api/client/login?login={login}&password={password}");
if (APIClient.Client == null)
{
throw new Exception("Неверный логин/пароль");

View File

@ -1,4 +1,4 @@
namespace APIClient.Models
namespace FlowerShopClientApp.Models
{
public class ErrorViewModel
{

View File

@ -0,0 +1,3 @@
@using FlowerShopClientApp
@using FlowerShopClientApp.Models
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers

View File

@ -6,6 +6,6 @@
}
},
"AllowedHosts": "*",
"IPAddress": "http://localhost:7213/"
"IPAddress": "http://localhost:5162/"
}

View File

Before

Width:  |  Height:  |  Size: 5.3 KiB

After

Width:  |  Height:  |  Size: 5.3 KiB

View File

@ -19,7 +19,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FlowerShopDatabaseImplement
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FlowerShopRestApi", "FlowerShopRestApi\FlowerShopRestApi.csproj", "{729A747E-7DDA-4D6A-87C3-F83DCC6393F4}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FlowerShopClientApp", "APIClient\FlowerShopClientApp.csproj", "{12281047-FD6A-4E88-A150-72EF707B6E10}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FlowerShopClientApp", "FlowerShopClientApp\FlowerShopClientApp.csproj", "{12281047-FD6A-4E88-A150-72EF707B6E10}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution