Beispiel #1
0
 public ActionResult Index(Mensaje captura)
 {
     try
     {
         var morse = new ToMorse();
         var octal = new ToOctal();
         captura.Salida = $"{morse.Codificar(captura.Texto)}, {octal.Codificar(captura.Texto)}";
         return(View(captura));
     }
     catch
     {
         return(View(new Mensaje()));
     }
 }