public static async Task <bool> ExistsIdAsync(Guid id) { var cmd = new CommandRoleExistsId(id); cmd = await DataPortal.ExecuteAsync(cmd); return(cmd.Exists); }
public static bool ExistsId(Guid id) { var cmd = new CommandRoleExistsId(id); cmd = DataPortal.Execute(cmd); return(cmd.Exists); }