public ActionResult Index()
 {
     var avalilableTypes = _translationEngineerService.GetMappingTypesAvailable();
     EngineerXmlViewModel vm = new EngineerXmlViewModel();
     var selectList = new List<SelectListItem>();
     avalilableTypes.ForEach(aT=>
     {
         selectList.Add(new SelectListItem(){Text = aT.Name,Value=aT.FullName});
     });
     vm.MappingTypesAvailable = selectList;
     return View(vm);
 }
        public ActionResult Index(EngineerXmlViewModel viewModel)
        {
            ModelState.Clear();
            var watch = Stopwatch.StartNew();
            var destinationXml =_translationEngineerService.ReverseEnginnerTranslatedXmlToDataCapture(viewModel.SourceXml, viewModel.DestinationType);
            watch.Stop();
            var timeTakenForTranslation = watch.ElapsedMilliseconds;

            var avalilableTypes = _translationEngineerService.GetMappingTypesAvailable();
            var selectList = new List<SelectListItem>();
            avalilableTypes.ForEach(aT =>
            {
                selectList.Add(new SelectListItem() { Text = aT.Name, Value = aT.FullName });
            });

            EngineerXmlViewModel newVM = new EngineerXmlViewModel();
            newVM.SourceXml = viewModel.SourceXml;
            newVM.MappingTypesAvailable = selectList;
            newVM.DestinationXml = destinationXml;
            newVM.DestinationType = viewModel.DestinationType;
            newVM.TimeTaken = TimeSpan.FromMilliseconds(timeTakenForTranslation).TotalSeconds;

            return View(newVM);
        }