public int InsertFile(TaksDocumentos doc)
        {
            //Usamos el stored procedure
            int             val           = 0;
            ObjectParameter VV            = new ObjectParameter("VValor_Mensaje", typeof(Int32));
            ObjectParameter VM            = new ObjectParameter("VMensaje", typeof(String));
            ObjectParameter nombreVirtual = new ObjectParameter("Nombre_Virtual", typeof(String));
            ObjectParameter idDocumento   = new ObjectParameter("Id_Documento", typeof(Int32));

            try
            {
                using (ClusmextContext context = new ClusmextContext())
                {
                    context.spInsDoctosTask(doc.Nombre, doc.Id_Ftp, doc.Creadopor, doc.IdTaks, doc.IdTaksDocumento, nombreVirtual, idDocumento, VV, VM);
                    if (VV.Value.ToString() == "0")
                    {
                        val = 1;
                    }
                }
            }
            catch (Exception ex)
            {
            }
            return(val);
        }