This commit is contained in:
skidoodle 2024-03-13 00:33:46 +01:00
commit e124a47765
19374 changed files with 9806149 additions and 0 deletions

View file

@ -0,0 +1,40 @@
using System;
using System.Net;
using System.Web.Mvc;
using Kreta.BusinessLogic.Security;
using Kreta.Core.Exceptions;
using Kreta.Web.Areas.Adatszolgaltatasok.Logic;
using Kreta.Web.Helpers.Error;
using Kreta.Web.Security;
namespace Kreta.Web.Areas.Adatszolgaltatasok.Controllers
{
[MvcRoleClaimsAuthorize(false)]
[MvcRolePackageAuthorize(KretaClaimPackages.Adminisztrator.ClaimValue, KretaClaimPackages.IsSzakkepzoIntezmeny.ClaimValue)]
public class ItmAdatszolgaltatasController : Controller
{
public ActionResult Index()
{
return View();
}
[MvcValidateAjaxAntiForgeryToken]
public ActionResult GetEllenorzoTablazatLetoltese()
{
try
{
ActionResult fileStremResult = ItmAdatszolgaltatasLogic.EllenorzoTablazatLetoltese();
return fileStremResult;
}
catch (BlException ex)
{
throw new StatusError((int)HttpStatusCode.InternalServerError, ex.Message);
}
catch (Exception ex)
{
throw new Exception(ex.Message);
}
}
}
}