예제 #1
0
        public async Task <IActionResult> DeleteOrganisationByIdAsync(
            [FromRoute] int organisationId,
            CancellationToken token = default)
        {
            try
            {
                var serviceResponse = await _organisationService.DeleteOrganisationByIdAsync(organisationId, token);

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