Exemplo n.º 1
0
 public ActionResult UploadStriing(HttpPostedFileBase file)
 {
     try
     {
         if (!file.FileName.EndsWith(".json"))
         {
             return(View());
         }
         if (file.ContentLength > 0)
         {
             var           json = new Archivo_Json <string>();
             Nodo <string> raiz = json.Dato(file.InputStream);
             db.Cadenas.root = raiz;
             return(RedirectToAction("IndexWord"));
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
     return(View());
 }