Пример #1
0
        public IActionResult Delete(MunicipalityDto municipality)
        {
            if (!municipality.Validate(municipality))
            {
                return(NoContent());
            }

            var response = _municipalityService.DeleteMunicipality(_mapper.Map <Municipality>(municipality));

            if (response == null)
            {
                return(NoContent());
            }

            return(Ok());
        }