コード例 #1
0
        public static async Task <bool> ExistsIdAsync(Guid id)
        {
            var cmd = new CommandRoleExistsId(id);

            cmd = await DataPortal.ExecuteAsync(cmd);

            return(cmd.Exists);
        }
コード例 #2
0
        public static bool ExistsId(Guid id)
        {
            var cmd = new CommandRoleExistsId(id);

            cmd = DataPortal.Execute(cmd);

            return(cmd.Exists);
        }