refactor: Projektdateien migriert. Cloud-NuGet-Pakete durch lokale NuGet-Projekte ersetzt.
This commit is contained in:
36
StaffDBServer/Controllers/WebAppToWebAppRoleController.cs
Normal file
36
StaffDBServer/Controllers/WebAppToWebAppRoleController.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
using DAL.Models.Entities;
|
||||
using DAL.Models.Filters;
|
||||
using DAL.Repositories;
|
||||
using HRD.LDAPService.JWT;
|
||||
using HRD.WebApi.Controllers;
|
||||
using HRD.WebApi.Repositories;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace StaffDBServer.Controllers
|
||||
{
|
||||
[JWTAuthorize]
|
||||
public class WebAppToWebAppRoleController : BaseController<WebAppToWebAppRole>
|
||||
{
|
||||
public WebAppToWebAppRoleController(IBaseRepository<WebAppToWebAppRole> repositoryBase) : base(repositoryBase)
|
||||
{
|
||||
}
|
||||
|
||||
[HttpPost("WebAppFilter")]
|
||||
public async Task<IActionResult> GetWebAppToWebAppRoleListAsync([FromBody] WebAppFilter filter)
|
||||
{
|
||||
try
|
||||
{
|
||||
var list = await ((WebAppToWebAppRoleRepository)EntityRepository).GetListByFilterAsync(filter);
|
||||
return new OkObjectResult(list);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
this.WriteLogException(ex);
|
||||
return StatusCode(StatusCodes.Status400BadRequest, $"Cann't get the filtered list of {typeof(WebAppToWebAppRole).Name}");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user