public async Task <IActionResult> GetBySecEmpresaYNumeroCliente([FromRoute] string codigo, int seleccion) { var result = await Task.Run(() => context.GetClienteBycode(codigo, seleccion)); if (result == null) { return(NotFound("Cliente not Found")); } return(Ok(result)); }