public IActionResult GetToEmployeeList(long FromEmployeeInfoId) { List <EmployeeInfo> employeeList = overTimeRepository.GetEmployeeListByFromEmployeeId(FromEmployeeInfoId); var d = JsonConvert.SerializeObject(employeeList, Formatting.None, new JsonSerializerSettings() { ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Ignore }); return(Content(d, "application/json")); }