Commit fa70fd51 authored by Almouhannad's avatar Almouhannad

(B) Add test controller into presentation

parent 1883d347
......@@ -11,13 +11,15 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "External", "External", "{87
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Infrastructure", "Infrastructure", "{FDA56BCD-A53D-4BA1-A59D-3F44FA32DDD7}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Domain", "Domain\Domain.csproj", "{B14D8AA9-67E7-400C-A833-D791681ABDF6}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Domain", "Domain\Domain.csproj", "{B14D8AA9-67E7-400C-A833-D791681ABDF6}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Application", "Application\Application.csproj", "{CE41FA28-76D7-4DC0-A980-B953F87253F5}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Application", "Application\Application.csproj", "{CE41FA28-76D7-4DC0-A980-B953F87253F5}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Presentation", "Presentation\Presentation.csproj", "{D04C0D6C-3FC9-4359-A017-DFCFA1475639}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Presentation", "Presentation\Presentation.csproj", "{D04C0D6C-3FC9-4359-A017-DFCFA1475639}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Persistence", "Persistence\Persistence.csproj", "{2B5111ED-7AB8-46E2-90F8-AF0C70265618}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Persistence", "Persistence\Persistence.csproj", "{2B5111ED-7AB8-46E2-90F8-AF0C70265618}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "API", "API\API.csproj", "{15B2AA13-EBBD-408B-A4B3-4BAB43D74267}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
......@@ -41,6 +43,10 @@ Global
{2B5111ED-7AB8-46E2-90F8-AF0C70265618}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2B5111ED-7AB8-46E2-90F8-AF0C70265618}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2B5111ED-7AB8-46E2-90F8-AF0C70265618}.Release|Any CPU.Build.0 = Release|Any CPU
{15B2AA13-EBBD-408B-A4B3-4BAB43D74267}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{15B2AA13-EBBD-408B-A4B3-4BAB43D74267}.Debug|Any CPU.Build.0 = Debug|Any CPU
{15B2AA13-EBBD-408B-A4B3-4BAB43D74267}.Release|Any CPU.ActiveCfg = Release|Any CPU
{15B2AA13-EBBD-408B-A4B3-4BAB43D74267}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
......
namespace Presentation
{
public class AssemblyReference
{
}
}
using Microsoft.AspNetCore.Mvc;
namespace Presentation.Controllers
{
[Route("api/[controller]")]
[ApiController]
public class TestsController : ControllerBase
{
[HttpGet]
public ActionResult Index()
{
object respone = new { Result = "Hello world!" };
return Ok(respone);
}
}
}
......@@ -6,6 +6,10 @@
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.7.0" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Application\Application.csproj" />
<ProjectReference Include="..\Domain\Domain.csproj" />
......
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