public String IniciarSesion(Entity.User_Login U)
        {
            List <ClsParameter> lst = new List <ClsParameter>();
            String Mensaje          = "";
            string pas = Encrypt.GetSHA1(Convert.ToString(U.Password));

            try
            {
                lst.Add(new ClsParameter("@Usuario", U.User));
                lst.Add(new ClsParameter("@Password", pas));
                lst.Add(new ClsParameter("@Mensaje", "", SqlDbType.VarChar, ParameterDirection.Output, 50));
                M.EjecutarSP("IniciarSesion3", ref lst);
                return(Mensaje = lst[2].Valor.ToString());
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
        public String RegistrarUsuarioLogin(Entity.User_Login U)
        {
            List <ClsParameter> lst = new List <ClsParameter>();
            String Mensaje          = "";

            try
            {
                lst.Add(new ClsParameter("@IdEmpleado", U.IdEmpleado));
                lst.Add(new ClsParameter("@Usuario", U.User));
                lst.Add(new ClsParameter("@Contraseña", U.Password));
                lst.Add(new ClsParameter("@Mensaje", "", SqlDbType.VarChar, ParameterDirection.Output, 50));
                M.EjecutarSP("RegistrarUsuario", ref lst);
                return(Mensaje = lst[3].Valor.ToString());
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }