Add project files.
This commit is contained in:
19
Core.Cerberos.Application/UseCases/Roles/Adapter/RolePort.cs
Normal file
19
Core.Cerberos.Application/UseCases/Roles/Adapter/RolePort.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using Core.Cerberos.Adapters;
|
||||
using Core.Cerberos.Application.UseCases.Roles.Ports;
|
||||
using Lib.Architecture.BuildingBlocks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace Core.Cerberos.Application.UseCases.Roles.Adapter
|
||||
{
|
||||
public class RolePort : BasePresenter, IRolePort
|
||||
{
|
||||
public void Success(RoleAdapter output)
|
||||
{
|
||||
ViewModel = new OkObjectResult(output);
|
||||
}
|
||||
public void Success(List<RoleAdapter> output)
|
||||
{
|
||||
ViewModel = new OkObjectResult(output);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user