public void CanGetEmployeeListFromXmlDataFile()
 {
     string xmlFile = @"C:\Source\Javascript\JavaScriptPlay\JSWebPlay\Content\Data\EmpInfo.xml";
     IEmployeeRepository employeeRepository = new XmlEmployeeRepository(xmlFile);
     IOrgService orgService = new OrgService(employeeRepository);
     List<EmpRecord> employeeList = orgService.GetEmployeeList();
     Assert.IsNotNull(employeeList);
     Assert.Greater(employeeList.Count, 0);
 }
        public ActionResult LoadOrgData()
        {
            IEmployeeRepository employeeRepository = new XmlEmployeeRepository(XmlFile);
            IOrgService orgService = new OrgService(employeeRepository);

            var employeeList = orgService.GetEmployeeList();
            JsonResult result = new JsonResult();
            var data = employeeList;
            result.Data = data;
            return result;
        }