OData route exception
问题 I am new to this so i will start with the code and after that i will explain. The problem is this [HttpGet, ODataRoute("({key})")] public SingleResult<Employee> GetByKey([FromODataUri] string key) { var result = EmployeesHolder.Employees.Where(id => id.Name == key).AsQueryable(); return SingleResult<Employee>.Create<Employee>(result); } [HttpGet, ODataRoute("({key})")] public SingleResult<Employee> Get([FromODataUri] int key) { var result = EmployeesHolder.Employees.Where(id => id.Id == key)