コード例 #1
0
ファイル: MiscController.cs プロジェクト: janiukjf/CurtAdmin
 public ActionResult ImageImport()
 {
     ImportService importservice = new ImportService();
     ImportProcess status = importservice.checkStatus();
     ViewBag.status = status;
     CurtDevDataContext db = new CurtDevDataContext();
     if (!status.isRunning()) {
         List<int> noimages = db.getPartsWithNoImages().Select(x => x.partID).ToList<int>();
         ViewBag.noimages = noimages;
         List<int> missingimages = db.getPartsWithMissingImageSizes().Select(x => x.partID).ToList<int>();
         ViewBag.missingimages = missingimages;
     }
     return View();
 }