From 60d2e4f903e5e4bde2dd55bdcc8d306b378b012f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Tue, 22 Dec 2020 19:01:12 +0300 Subject: [PATCH] Added Home controllers. --- .../AbpPerfTest.WithAbp/AbpPerfTest.WithAbp.csproj | 6 +++--- .../Controllers/HomeController.cs | 14 ++++++++++++++ .../AbpPerfTest.WithoutAbp.csproj | 2 +- .../Controllers/HomeController.cs | 14 ++++++++++++++ 4 files changed, 32 insertions(+), 4 deletions(-) create mode 100644 test/AbpPerfTest/AbpPerfTest.WithAbp/Controllers/HomeController.cs create mode 100644 test/AbpPerfTest/AbpPerfTest.WithoutAbp/Controllers/HomeController.cs diff --git a/test/AbpPerfTest/AbpPerfTest.WithAbp/AbpPerfTest.WithAbp.csproj b/test/AbpPerfTest/AbpPerfTest.WithAbp/AbpPerfTest.WithAbp.csproj index 69e9c3802f..b270d019a4 100644 --- a/test/AbpPerfTest/AbpPerfTest.WithAbp/AbpPerfTest.WithAbp.csproj +++ b/test/AbpPerfTest/AbpPerfTest.WithAbp/AbpPerfTest.WithAbp.csproj @@ -5,9 +5,9 @@ - - - + + + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/test/AbpPerfTest/AbpPerfTest.WithAbp/Controllers/HomeController.cs b/test/AbpPerfTest/AbpPerfTest.WithAbp/Controllers/HomeController.cs new file mode 100644 index 0000000000..cf6ce4d5d2 --- /dev/null +++ b/test/AbpPerfTest/AbpPerfTest.WithAbp/Controllers/HomeController.cs @@ -0,0 +1,14 @@ +using Microsoft.AspNetCore.Mvc; + +namespace AbpPerfTest.WithAbp.Controllers +{ + [Route("")] + public class HomeController : Controller + { + [HttpGet] + public ActionResult Index() + { + return Redirect("/api/books/"); + } + } +} diff --git a/test/AbpPerfTest/AbpPerfTest.WithoutAbp/AbpPerfTest.WithoutAbp.csproj b/test/AbpPerfTest/AbpPerfTest.WithoutAbp/AbpPerfTest.WithoutAbp.csproj index fd061fe040..36db51501a 100644 --- a/test/AbpPerfTest/AbpPerfTest.WithoutAbp/AbpPerfTest.WithoutAbp.csproj +++ b/test/AbpPerfTest/AbpPerfTest.WithoutAbp/AbpPerfTest.WithoutAbp.csproj @@ -9,7 +9,7 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive - + diff --git a/test/AbpPerfTest/AbpPerfTest.WithoutAbp/Controllers/HomeController.cs b/test/AbpPerfTest/AbpPerfTest.WithoutAbp/Controllers/HomeController.cs new file mode 100644 index 0000000000..e2e72ea869 --- /dev/null +++ b/test/AbpPerfTest/AbpPerfTest.WithoutAbp/Controllers/HomeController.cs @@ -0,0 +1,14 @@ +using Microsoft.AspNetCore.Mvc; + +namespace AbpPerfTest.WithoutAbp.Controllers +{ + [Route("")] + public class HomeController : Controller + { + [HttpGet] + public ActionResult Index() + { + return Redirect("/api/books/"); + } + } +}