Beispiel #1
0
        public ViewResult ListParts(string searchline)
        {
            //var parts = _parts.Partslistsearch(searchline);
            List <SearchPart> parts = (List <SearchPart>)_parts.Partslistsearch(searchline);

            PartRepository partRepository = new PartRepository();

            partRepository.FillList((List <SearchPart>)parts);

            return(View(parts));
        }
        public IActionResult Search(string searchline)
        {
            List <SearchPart> parts = (List <SearchPart>)_parts.Partslistsearch(searchline);

            adorders.FillList(parts);


            var tr = new List <SearchPart>(parts);
            //tr = parts;
            var modelCollection = new ModelCollection();

            modelCollection.AddModel(tr);

            return(PartialView("Search", modelCollection));
        }