Beispiel #1
0
        public HttpResponseMessage SearchAsset(HttpRequestMessage request, [FromBody] AssetViewModel obj)
        {
            HttpResponseMessage response = new HttpResponseMessage();

            response = _assetProcess.SearchAsset(obj);
            return(response);
        }
Beispiel #2
0
        public ActionResult Search(string assetTag = "", string serialNumber = "", int statusID = -1)
        {
            //FixAssetManagementProcess fixAssetManagement = new FixAssetManagementProcess();
            //BaseProcess baseProc = new BaseProcess();
            //List<FixAssetModel> assets = fixAssetManagement.Search(assetTag, serialNumber, statusID);

            //ViewBag.AssetStatus = baseProc.GetAllAssetStatus();

            AssetProcess assetProcess = new AssetProcess();

            List <vwFixAssetList>       resultList    = assetProcess.SearchAsset(anAssetTag: assetTag, aSerialNumber: serialNumber, aStatusID: statusID).ToList();
            GenericProcess <AssetStatu> statusProcess = new GenericProcess <AssetStatu>();

            ViewBag.AssetStatus = statusProcess.GetAll().ToList();

            TempData["Assets"] = resultList;

            return(View("Index", resultList));
        }