예제 #1
0
        public async Task <IActionResult> GetByFilter(string cadena)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }
            var empleados = await _empleadoRepositorio.ObtenerConFiltro(cadena);

            if (empleados == null)
            {
                return(NotFound());
            }
            return(Ok(empleados));
        }