init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
|
@ -0,0 +1,34 @@
|
|||
using System.Web.Mvc;
|
||||
using Kreta.BusinessLogic.Helpers;
|
||||
using Kreta.BusinessLogic.Security;
|
||||
using Kreta.Core.FeatureToggle;
|
||||
using Kreta.Web.Areas.Adatszolgaltatasok.ApiControllers;
|
||||
using Kreta.Web.Controllers;
|
||||
using Kreta.Web.Helpers;
|
||||
using Kreta.Web.Security;
|
||||
|
||||
namespace Kreta.Web.Areas.Adatszolgaltatasok.Controllers
|
||||
{
|
||||
[MvcRoleClaimsAuthorize(true)]
|
||||
[MvcRolePackageDenyAuthorize(KretaClaimPackages.IsOnlyAlkalmozott.ClaimValue)]
|
||||
[MvcRolePackageAuthorize(KretaClaimPackages.Adminisztrator.ClaimValue)]
|
||||
public class InformatikaiAdatszolgaltatasController : Controller
|
||||
{
|
||||
private readonly IFeatureContext FeatureContext;
|
||||
|
||||
public InformatikaiAdatszolgaltatasController(IFeatureContext featureContext)
|
||||
{
|
||||
FeatureContext = featureContext;
|
||||
}
|
||||
|
||||
public ActionResult Index()
|
||||
{
|
||||
var api = new InformatikaiAdatszolgaltatasApiController();
|
||||
var co = new InformatikaiAdatszolgHelper(ConnectionTypeExtensions.GetSessionConnectionType()).GetModelForIndex();
|
||||
var model = api.ConvertCoToModel(co);
|
||||
model.IgenNemList = new ComboBoxHelperEnumApiController(FeatureContext).GetIgenNemEnumSelectList();
|
||||
|
||||
return View("Index", model);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue