public ActionResult Create(FormCollection collection)
 {
     try
     {
         // TODO: Add insert logic here
         CuentaGastosDetalle cgd = new CuentaGastosDetalle()
         {
             CuentaGastoId = Int32.Parse(collection.Get("CuentaGastoId")),
             FolioFactura  = collection.Get("FolioFactura"),
             Fecha         = DateTime.Parse(collection.Get("Fecha")),
             Monto         = Double.Parse(collection.Get("Monto")),
             Descripcion   = collection.Get("Descripcion"),
             IdConcepto    = collection.Get("IdConcepto"),
             MetodoPago    = collection.Get("MetodoPago")
         };
         cgd.createCuentaGastoDetalle();
         return(RedirectToAction("Index", new { id = Int32.Parse(collection.Get("CuentaGastoId")) }));
     }
     catch
     {
         return(View());
     }
 }