Ejemplo n.º 1
0
 public ActionResult Index()
 {
     ViewData["Classify"] = classifyApplication.FindAll();
     string[] iconsFilePath = FileCommon.GetFileNames(Server.MapPath(ICONPATH));
     if (iconsFilePath != null)
     {
         for (int i = 0; i < iconsFilePath.Length; i++)
         {
             iconsFilePath[i] = FileCommon.getFileName(iconsFilePath[i]);
         }
     }
     ViewData["Tags"]      = tagApplication.FindAll();
     ViewBag.SourceURL     = Url.Content(ICONPATH);
     ViewData["iconFiles"] = iconsFilePath;
     return(View());
 }