Ejemplo n.º 1
0
 public IActionResult QueryByName(string name)
 {
     if (string.IsNullOrEmpty(name))
     {
         return(BadRequest("市辖区、县级市、县名称不能为空!"));
     }
     return(Ok(_countyRepository.GetCountyByName(name)));
 }