Exemplo n.º 1
0
        public async Task <IActionResult> Delete(int id)
        {
            TownDto townDto = await _townService.GetTown(id);

            if (townDto == null)
            {
                return(NotFound("No such town"));
            }

            await _townService.DeleteTown(id);

            return(Ok());
        }