Table of Contents

Class BranchPostingTemplateMappingsController

Namespace
KadicErp.WebApi.Controllers.Accounting
Assembly
KadicErp.WebApi.dll
[ApiController]
[Route("api/accounting/branch-template-mappings")]
[RequireModule("ACCOUNTING")]
public class BranchPostingTemplateMappingsController : ControllerBase
Inheritance
object
ControllerBase
BranchPostingTemplateMappingsController

Constructors

BranchPostingTemplateMappingsController(IMediator)

public BranchPostingTemplateMappingsController(IMediator mediator)

Parameters

mediator IMediator

Methods

Get(Guid)

[HttpGet]
[Authorize(Policy = "ACCOUNTING_POSTING_TEMPLATES_VIEW")]
public Task<IActionResult> Get(Guid branchId)

Parameters

branchId Guid

Returns

Task<IActionResult>

Upsert(Guid, IReadOnlyList<BranchTemplateMappingInputDto>)

[HttpPut]
[Authorize(Policy = "ACCOUNTING_POSTING_TEMPLATES_UPDATE")]
public Task<IActionResult> Upsert(Guid branchId, IReadOnlyList<BranchTemplateMappingInputDto> mappings)

Parameters

branchId Guid
mappings IReadOnlyList<BranchTemplateMappingInputDto>

Returns

Task<IActionResult>