public async Task <IActionResult> DeleteBranchByIdAsync(
            [FromRoute] int branchId,
            CancellationToken token = default)
        {
            try
            {
                var serviceResponse = await _branchService.DeleteBranchByIdAsync(branchId, token);

                return(new StatusCodeResult(204));
            }
            catch (Exception e)
            {
                return(new BadRequestObjectResult(e.Message));
            }
        }