init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
|
@ -0,0 +1,44 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Net;
|
||||
using System.Net.Http;
|
||||
using System.Web.Http;
|
||||
using Kendo.Mvc.UI;
|
||||
using Kreta.BusinessLogic.Helpers;
|
||||
using Kreta.BusinessLogic.Security;
|
||||
using Kreta.Web.Areas.Hianyzas.Models;
|
||||
using Kreta.Web.Helpers;
|
||||
using Kreta.Web.Helpers.Grid;
|
||||
using Kreta.Web.Security;
|
||||
|
||||
namespace Kreta.Web.Areas.Adatszolgaltatasok.ApiControllers
|
||||
{
|
||||
[ApiRoleClaimsAuthorize(true)]
|
||||
[ApiRolePackageAuthorize(KretaClaimPackages.Adminisztrator.ClaimValue)]
|
||||
public class IktSzandeknyilatkozatokApiController : ApiController
|
||||
{
|
||||
public DataSourceResult GetIktSzandeknyilatkozatokGrid([System.Web.Http.ModelBinding.ModelBinder(typeof(ModelBinder.DataSourceRequestModelBinder))] DataSourceRequest request)
|
||||
{
|
||||
DataSourceResult result;
|
||||
|
||||
var helper = new AdatszolgaltatasokHelper(ConnectionTypeExtensions.GetSessionConnectionType());
|
||||
result = helper.GetIktSzandeknyilatkozatokGrid().ToDataSourceResult();
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
public HttpResponseMessage SaveIktSzandeknyilatkozatok(List<IktSzandeknyilatkozatokSaveModel> list)
|
||||
{
|
||||
var helper = new NyomtatvanyokHelper(ConnectionTypeExtensions.GetSessionConnectionType());
|
||||
|
||||
foreach (var item in list)
|
||||
{
|
||||
if (item.Id != null && item.IsElfogadottSzandeknyilatkozat != null)
|
||||
{
|
||||
helper.UpdateIktSzandeknyilatkozat(item.Id.Value, item.IsElfogadottSzandeknyilatkozat.Value);
|
||||
}
|
||||
}
|
||||
|
||||
return new HttpResponseMessage(HttpStatusCode.OK);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue