public async Task <ActionResult> SubmitPayRun([FromServices] ISubmitPayRunUseCase useCase, Guid id, PayRunChangeStatusRequest request) { await useCase.ExecuteAsync(id, request.Notes); return(Ok()); }
public async Task <ActionResult> DeletePayRun([FromServices] IArchivePayRunUseCase useCase, Guid id, PayRunChangeStatusRequest request) { await useCase.DeleteAsync(id, request.Notes); return(Ok()); }