public ActionResult Create(FormCollection collection)
 {
     try
     {
         // TODO: Add insert logic here
         SWNegocioBanco.SWNegocioBancoClient WS = new SWNegocioBanco.SWNegocioBancoClient();
         BancoResponse respuesta = new BancoResponse();
         respuesta = WS.RegistrarBanco(new BancoRequest {
             Nombre        = collection["Nombre"],
             Direccion     = collection["Direccion"],
             FechaRegistro = DateTime.Parse(collection["FechaRegistro"])
         });
         //if (respuesta.CodigoError == 0)
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View());
     }
 }
 public ActionResult Creacion(BancoViewModel modelo, FormCollection collection)
 {
     try
     {
         // TODO: Add insert logic here
         SWNegocioBanco.SWNegocioBancoClient WS = new SWNegocioBanco.SWNegocioBancoClient();
         BancoResponse respuesta = new BancoResponse();
         respuesta = WS.RegistrarBanco(new BancoRequest
         {
             Nombre        = modelo.Nombre,
             Direccion     = modelo.Direccion,
             FechaRegistro = modelo.FechaRegistro
         });
         //if (respuesta.CodigoError == 0)
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View());
     }
 }