Ejemplo n.º 1
0
        public ActionResult DeleteRegion([FromQuery] string Name, [FromQuery] string Country)
        {
            var region = _repository.Exist(Name, Country);

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

            _repository.DeleteRegion(region);
            _repository.SaveChanges();

            return(NoContent());
        }
Ejemplo n.º 2
0
 public async Task <bool> DeleteRegion(string id)
 {
     return(await _RegionRepo.DeleteRegion(id));
 }