public async Task <IActionResult> DeleteBranchAsync(int id)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            var eventToDelete = await branchesService.GetBranchesIDAsync(id);

            if (eventToDelete == null)
            {
                return(NotFound());
            }

            await branchesService.DeleteBranchesAsync(id);

            return(Ok(eventToDelete));
        }