что-то с чем-то
This commit is contained in:
parent
d536cb80d2
commit
f524411aa6
28
LawFim/LawFirmRestApi/Controllers/ConsultationController.cs
Normal file
28
LawFim/LawFirmRestApi/Controllers/ConsultationController.cs
Normal file
@ -0,0 +1,28 @@
|
||||
using LawFirmBusinessLogic.BusinessLogics;
|
||||
using LawFirmContracts.BusinessLogicContracts;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace LawFirmRestApi.Controllers
|
||||
{
|
||||
[Route("api/[controller]/[action]")]
|
||||
[ApiController]
|
||||
public class ConsultationController : Controller
|
||||
{
|
||||
private readonly ILogger _logger;
|
||||
private readonly IConsultationLogic _logic;
|
||||
private readonly ILawyerLogic _lawyerlogic;
|
||||
|
||||
public ConsultationController(IConsultationLogic logic, ILogger<ConsultationController>
|
||||
logger, ILawyerLogic lawyerLogic)
|
||||
{
|
||||
_logger = logger;
|
||||
_logic = logic;
|
||||
_lawyerlogic = lawyerLogic;
|
||||
|
||||
}
|
||||
public IActionResult Index()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
}
|
||||
}
|
@ -19,8 +19,8 @@ builder.Services.AddTransient<IConsultationStorage, ConsultationStorage>();
|
||||
builder.Services.AddTransient<ILawyerStorage, LawyerStorage>();
|
||||
builder.Services.AddTransient<IHearingStorage, HearingStorage>();
|
||||
|
||||
builder.Services.AddTransient<IExecutorStorage, ExecutorStorage>();
|
||||
builder.Services.AddTransient<IGuarantorStorage, GuarantorStorage>();
|
||||
//builder.Services.AddTransient<IExecutorStorage, ExecutorStorage>();
|
||||
//builder.Services.AddTransient<IGuarantorStorage, GuarantorStorage>();
|
||||
|
||||
|
||||
builder.Services.AddTransient<ICaseLogic, CaseLogic>();
|
||||
@ -31,8 +31,8 @@ builder.Services.AddTransient<IConsultationLogic, ConsultationLogic>();
|
||||
builder.Services.AddTransient<IHearingLogic, HearingLogic>();
|
||||
builder.Services.AddTransient<ILawyerLogic, LawyerLogic>();
|
||||
|
||||
builder.Services.AddTransient<IExecutorLogic, ExecutorLogic>();
|
||||
builder.Services.AddTransient<IGuarantorLogic, GuarantorLogic>();
|
||||
//builder.Services.AddTransient<IExecutorLogic, ExecutorLogic>();
|
||||
//builder.Services.AddTransient<IGuarantorLogic, GuarantorLogic>();
|
||||
|
||||
|
||||
builder.Services.AddControllers();
|
||||
|
@ -1,23 +1,14 @@
|
||||
{
|
||||
"$schema": "https://json.schemastore.org/launchsettings.json",
|
||||
"iisSettings": {
|
||||
"windowsAuthentication": false,
|
||||
"anonymousAuthentication": true,
|
||||
"iisExpress": {
|
||||
"applicationUrl": "http://localhost:49016",
|
||||
"sslPort": 44354
|
||||
}
|
||||
},
|
||||
{
|
||||
"profiles": {
|
||||
"LawFirmRestApi": {
|
||||
"commandName": "Project",
|
||||
"dotnetRunMessages": true,
|
||||
"launchBrowser": true,
|
||||
"launchUrl": "swagger",
|
||||
"applicationUrl": "https://localhost:7033;http://localhost:5223",
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
}
|
||||
},
|
||||
"dotnetRunMessages": true,
|
||||
"applicationUrl": "https://localhost:7033;http://localhost:5223"
|
||||
},
|
||||
"IIS Express": {
|
||||
"commandName": "IISExpress",
|
||||
@ -27,5 +18,14 @@
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
}
|
||||
}
|
||||
},
|
||||
"$schema": "https://json.schemastore.org/launchsettings.json",
|
||||
"iisSettings": {
|
||||
"windowsAuthentication": false,
|
||||
"anonymousAuthentication": true,
|
||||
"iisExpress": {
|
||||
"applicationUrl": "http://localhost:58916/",
|
||||
"sslPort": 44311
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -1,16 +1,16 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
|
||||
<!-- To customize the asp.net core module uncomment and edit the following section.
|
||||
For more info see https://go.microsoft.com/fwlink/?linkid=838655 -->
|
||||
<!--
|
||||
<system.webServer>
|
||||
<handlers>
|
||||
<remove name="aspNetCore"/>
|
||||
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified"/>
|
||||
</handlers>
|
||||
<aspNetCore processPath="%LAUNCHER_PATH%" arguments="%LAUNCHER_ARGS%" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" />
|
||||
</system.webServer>
|
||||
-->
|
||||
|
||||
</configuration>
|
||||
<log4net>
|
||||
<appender name="RollingFile" type="log4net.Appender.RollingFileAppender">
|
||||
<file value="c:/temp/LawFirmRestApi.log" />
|
||||
<appendToFile value="true" />
|
||||
<maximumFileSize value="100KB" />
|
||||
<maxSizeRollBackups value="2" />
|
||||
<layout type="log4net.Layout.PatternLayout">
|
||||
<conversionPattern value="%date %5level %logger.%method [%line] - MESSAGE: %message%newline %exception" />
|
||||
</layout>
|
||||
</appender>
|
||||
<root>
|
||||
<level value="TRACE" />
|
||||
<appender-ref ref="RollingFile" />
|
||||
</root>
|
||||
</log4net>
|
Loading…
x
Reference in New Issue
Block a user