using System.Web.Mvc; using Kreta.Web.Areas.Feljegyzes.Models; using Kreta.Web.Security; namespace Kreta.Web.Areas.Feljegyzes.Controllers { public class BeirasokController : BaseBeirasokController { public BeirasokController(IKretaAuthorization authorization) : base(authorization) { } public ActionResult Index() { if (Authorization.IsValidDualisBeirasok()) { return Redirect(Url.Action("AccessDenied", "ErrorHandler", new { area = string.Empty })); } var model = new FeljegyzesekSearchModel { ControllerName = Constants.Controllers.Beirasok, ApiControllerName = Constants.ApiControllers.BeirasokApi, }; return View("Index", model); } public new ActionResult BeirasokReszletekGrid(BeirasokGridModel model) { model.ApiControllerName = Constants.ApiControllers.BeirasokApi; return base.BeirasokReszletekGrid(model); } [HttpPost] [MvcValidateAjaxAntiForgeryToken] public ActionResult OpenStartPopup() { return OpenStartPopup(false); } } }