Пример #1
0
        public async Task <IActionResult> AllocateSectionListAsync(string company, [FromBody, Required] AllocateSectionListCommand request)
        {
            request.Company = company;

            await _mediator.Send(request);

            return(Ok());
        }
Пример #2
0
        public async Task <IActionResult> AllocateImageSectionListAsync(string company, [FromBody, Required] AllocateSectionListCommand request)
        {
            request.Company           = company;
            request.IsImageAllocation = true;

            var response = await _mediator.Send(request);

            return(Ok(response));
        }