Пример #1
0
 public IActionResult GetByName([FromQuery] string name)
 {
     if (name == null)
     {
         return(BadRequest("Debe ingresar un nombre"));
     }
     return(Ok(personLogic.GetByName(name)));
 }