init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue