コード例 #1
0
        public static string GetAdapted(string loginID, int A)
        {
            string varData;

            try
            {
                UsuarioAdapter adapter = new UsuarioAdapter(UsuarioFacade.Select(loginID, A));
                Usuario        _object = new Usuario();
                if (A == 1)
                {
                    adapter.FillPwd(_object);
                    varData = _object.Password;
                }
                else
                {
                    adapter.FillID(_object);
                    varData = _object.IdUsuario.ToString();
                }
            }
            catch (ExceptionDAL dalex)
            {
                throw new ExceptionBLL(dalex, dalex.Message);
            }
            return(varData);
        }