public async Task <IActionResult> AllocateSectionListAsync(string company, [FromBody, Required] AllocateSectionListCommand request) { request.Company = company; await _mediator.Send(request); return(Ok()); }
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)); }