init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
42
KretaWeb/Areas/Feljegyzes/Controllers/BeirasokController.cs
Normal file
42
KretaWeb/Areas/Feljegyzes/Controllers/BeirasokController.cs
Normal file
|
@ -0,0 +1,42 @@
|
|||
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);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue