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); } } } }