예제 #1
0
        public static bool Exists(int id)
        {
            var cmd = new ResourceExistsCommand(id);

            cmd = DataPortal.Execute(cmd);
            return(cmd.ResourceExists);
        }
예제 #2
0
        public static async Task <bool> ExistsAsync(int id)
        {
            var cmd = new ResourceExistsCommand(id);

            cmd = await DataPortal.ExecuteAsync(cmd);

            return(cmd.ResourceExists);
        }