Skip to content

Commit 13af2dc

Browse files
committed
Moved to parent folder and integrated to Abp.AspNetCore package.
1 parent 6da5660 commit 13af2dc

File tree

17 files changed

+162
-44
lines changed

17 files changed

+162
-44
lines changed

AbpCompanyName.AbpProjectName/src/AbpCompanyName.AbpProjectName.Web/Controllers/HomeController.cs

Lines changed: 0 additions & 12 deletions
This file was deleted.

AbpCompanyName.AbpProjectName/src/AbpCompanyName.AbpProjectName.Web/Startup.cs

Lines changed: 0 additions & 28 deletions
This file was deleted.
File renamed without changes.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
using System.Reflection;
2+
using Abp.AspNetCore;
3+
using Abp.Modules;
4+
5+
namespace AbpCompanyName.AbpProjectName.Web
6+
{
7+
[DependsOn(typeof(AbpAspNetCoreModule))]
8+
public class AbpProjectNameWebModule : AbpModule
9+
{
10+
public override void PreInitialize()
11+
{
12+
Configuration.Auditing.IsEnabledForAnonymousUsers = true;
13+
}
14+
15+
public override void Initialize()
16+
{
17+
IocManager.RegisterAssemblyByConvention(Assembly.GetExecutingAssembly());
18+
}
19+
}
20+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
using Abp.AspNetCore.Mvc.Controllers;
2+
using AbpCompanyName.AbpProjectName.Web.Services;
3+
using Microsoft.AspNetCore.Mvc;
4+
5+
namespace AbpCompanyName.AbpProjectName.Web.Controllers
6+
{
7+
public class HomeController : AbpController
8+
{
9+
private readonly MyService _myService;
10+
11+
public HomeController(MyService myService)
12+
{
13+
_myService = myService;
14+
}
15+
16+
public IActionResult Index()
17+
{
18+
ViewBag.Number = _myService.GetValue();
19+
return View();
20+
}
21+
}
22+
}

0 commit comments

Comments
 (0)