43 lines
1.4 KiB
C#
43 lines
1.4 KiB
C#
using System.Web.Mvc;
|
|
using Kreta.Web.Areas.Feljegyzes.Models;
|
|
using Kreta.Web.Attributes;
|
|
using Kreta.Web.Security;
|
|
|
|
namespace Kreta.Web.Areas.Feljegyzes.Controllers
|
|
{
|
|
[KretaGlobalLanguageChangeActionFilter(LanguageCode = "hu-Dualis")]
|
|
public class DualisBeirasokController : BaseBeirasokController
|
|
{
|
|
public DualisBeirasokController(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.DualisBeirasok,
|
|
ApiControllerName = Constants.ApiControllers.DualisBeirasokApi,
|
|
};
|
|
return View("~/Areas/Feljegyzes/Views/Beirasok/Index.cshtml", model);
|
|
}
|
|
|
|
public new ActionResult BeirasokReszletekGrid(BeirasokGridModel model)
|
|
{
|
|
model.ApiControllerName = Constants.ApiControllers.DualisBeirasokApi;
|
|
return base.BeirasokReszletekGrid(model);
|
|
}
|
|
|
|
[HttpPost]
|
|
[MvcValidateAjaxAntiForgeryToken]
|
|
public ActionResult OpenStartPopup()
|
|
{
|
|
return OpenStartPopup(true);
|
|
}
|
|
}
|
|
}
|